HEX
Server: LiteSpeed
System: Linux premium263.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: eastcjee (525)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: //proc/thread-self/cwd/wp-content/plugins/wp-social/lib/provider/counter/posts-counter.php
<?php

namespace WP_Social\Lib\Provider\Counter;


class Posts_Counter extends Counter {

	private $global_options;

	public static function get_transient_key() {

		return '';
	}

	public static function get_transient_timeout_key() {

		return '';
	}

	public static function get_last_cache_key() {
		return '';
	}

	public function need_to_call_legacy_function() {

		return false;
	}


	public function set_config_data($conf_array) {

		$this->global_options = $conf_array;

		return $this;
	}


	public function get_count($global_cache_time = 43200) {

		/**
		 * Here if there is no default value then show actual value!
		 */
		$count_posts = wp_count_posts();

		return empty($this->global_options['data']['value']) ? $count_posts->publish : $this->global_options['data']['value'];
	}
}