PATH:
home
/
letacommog
/
rachat-or-bourgenbresse
/
wp-content
/
plugins
/
wordpress-seo
/
src
/
conditionals
<?php namespace Yoast\WP\SEO\Conditionals; use Yoast\WP\SEO\Helpers\Current_Page_Helper; /** * Conditional that is only met when in frontend or page is a post overview or post add/edit form. */ class Primary_Category_Conditional implements Conditional { /** * The current page helper. * * @var Current_Page_Helper */ private $current_page; /** * Primary_Category_Conditional constructor. * * @param Current_Page_Helper $current_page The current page helper. */ public function __construct( Current_Page_Helper $current_page ) { $this->current_page = $current_page; } /** * @inheritDoc */ public function is_met() { if ( ! \is_admin() ) { return true; } return \in_array( $this->current_page->get_current_admin_page(), [ 'edit.php', 'post.php', 'post-new.php' ], true ); } }
[+]
..
[+]
admin
[-] should-index-links-conditional.php
[edit]
[-] conditional-interface.php
[edit]
[-] admin-conditional.php
[edit]
[-] feature-flag-conditional.php
[edit]
[-] headless-rest-endpoints-enabled-conditional.php
[edit]
[-] front-end-conditional.php
[edit]
[-] wpml-conditional.php
[edit]
[-] yoast-admin-and-dashboard-conditional.php
[edit]
[-] jetpack-conditional.php
[edit]
[-] no-conditionals-trait.php
[edit]
[-] development-conditional.php
[edit]
[-] migrations-conditional.php
[edit]
[-] woocommerce-conditional.php
[edit]
[-] .htaccess
[edit]
[-] open-graph-conditional.php
[edit]
[-] xmlrpc-conditional.php
[edit]
[-] web-stories-conditional.php
[edit]
[-] primary-category-conditional.php
[edit]
[-] get-request-conditional.php
[edit]
[-] breadcrumbs-enabled-conditional.php
[edit]
[-] yoast-tools-page-conditional.php
[edit]