🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-06-19 02:53:56 | PHP 8.1.34
📂
/ (Root)
/
home
/
therahul
/
reenrihair.com
/
wp-content
/
plugins
/
wordpress-seo-premium
/
src
/
conditionals
📍 /home/therahul/reenrihair.com/wp-content/plugins/wordpress-seo-premium/src/conditionals
🔄 Refresh
✏️
Editing: not-woo-order-conditional.php
Writable
<?php namespace Yoast\WP\SEO\Premium\Conditionals; use Yoast\WP\SEO\Conditionals\Conditional; /** * Conditional that is only met when post type is not 'shop_order'. * * phpcs:disable Yoast.NamingConventions.ObjectNameDepth.MaxExceeded */ class Not_Woo_Order_Conditional implements Conditional { /** * Returns `false` when post type is 'shop_order'. * * @return bool `false` when post type is 'shop_order'. */ public function is_met() { // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Reason: We are not processing form information. if ( isset( $_GET['post_type'] ) && \is_string( $_GET['post_type'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended,WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Reason: We are not processing form information, We are only strictly comparing. if ( \wp_unslash( $_GET['post_type'] ) === 'shop_order' ) { return false; } } return true; } }
💾 Save Changes
❌ Cancel