golden hour
/home/phakp/public_html/wp-content/plugins/whp-hide-posts/inc/core
⬆️ Go Up
Upload
File/Folder
Size
Actions
autoloader.php
1.29 KB
Del
OK
class-constants.php
1.02 KB
Del
OK
class-plugin.php
2.98 KB
Del
OK
helpers.php
1.57 KB
Del
OK
Edit: class-constants.php
<?php /** * Plugin class * * @since 1.0.0 * * @package WordPressHidePosts */ namespace MartinCV\WHP\Core; // Exit if accessed directly. if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Constants */ class Constants { const HIDDEN_POSTS_KEYS_LIST = array( 'all' => '_whp_hide_%', 'front_page' => '_whp_hide_on_frontpage', 'blog_page' => '_whp_hide_on_blog_page', 'categories' => '_whp_hide_on_categories', 'search' => '_whp_hide_on_search', 'tags' => '_whp_hide_on_tags', 'authors' => '_whp_hide_on_authors', 'date' => '_whp_hide_on_date', 'post_navigation' => '_whp_hide_on_post_navigation', 'recent_posts' => '_whp_hide_on_recent_posts', 'cpt_archive' => '_whp_hide_on_cpt_archive', 'rest_api' => '_whp_hide_on_rest_api', ); const BUILT_IN_TAXONOMIES = array( 'category', 'post_tag', 'post_format', ); /** * Private constructor * * @return void */ private function __construct() { // Empty here. } }
Save