Viewing File: /home/fshjisk/cocoperla/wp-content8f7/plugins/content-control/inc/deprecated/class.restrictions.php
<?php
/**
* Deprecated restrictions class.
*
* @copyright (c) 2023, Code Atlantic LLC.
* @package ContentControl
*/
namespace JP\CC\Site;
use function ContentControl\plugin;
defined( 'ABSPATH' ) || exit;
/**
* Frontend restriction controller.
*/
class Restrictions {
/**
* Protected posts.
*
* @var array<int>
*/
public static $protected_posts = [];
/**
* Method to get the protected post content.
*
* @return string
*/
public static function restricted_content() {
$restriction = plugin( 'restrictions' )->get_applicable_restriction();
return false !== $restriction ? $restriction->to_v1_array() : false;
}
}
Back to Directory
File Manager