Submit
Path:
~
/
home
/
getwphos
/
public_html
/
topdoggroomingny
/
wp-content
/
plugins
/
wordpress-seo
/
src
/
integrations
/
admin
/
File Content:
activation-cleanup-integration.php
<?php namespace Yoast\WP\SEO\Integrations\Admin; use Yoast\WP\SEO\Conditionals\No_Conditionals; use Yoast\WP\SEO\Helpers\Indexable_Helper; use Yoast\WP\SEO\Helpers\Options_Helper; use Yoast\WP\SEO\Integrations\Cleanup_Integration; use Yoast\WP\SEO\Integrations\Integration_Interface; /** * This integration registers a run of the cleanup routine whenever the plugin is activated. */ class Activation_Cleanup_Integration implements Integration_Interface { use No_Conditionals; /** * The indexable helper. * * @var Indexable_Helper */ protected $indexable_helper; /** * The options helper. * * @var Options_Helper */ private $options_helper; /** * Activation_Cleanup_Integration constructor. * * @param Options_Helper $options_helper The options helper. * @param Indexable_Helper $indexable_helper The indexable helper. */ public function __construct( Options_Helper $options_helper, Indexable_Helper $indexable_helper ) { $this->options_helper = $options_helper; $this->indexable_helper = $indexable_helper; } /** * Registers the action to register a cleanup routine run after the plugin is activated. * * @return void */ public function register_hooks() { \add_action( 'wpseo_activate', [ $this, 'register_cleanup_routine' ], 11 ); } /** * Registers a run of the cleanup routine if this has not happened yet. * * @return void */ public function register_cleanup_routine() { if ( ! $this->indexable_helper->should_index_indexables() ) { return; } $first_activated_on = $this->options_helper->get( 'first_activated_on', false ); if ( ! $first_activated_on || \time() > ( $first_activated_on + ( \MINUTE_IN_SECONDS * 5 ) ) ) { if ( ! \wp_next_scheduled( Cleanup_Integration::START_HOOK ) ) { \wp_schedule_single_event( ( \time() + \DAY_IN_SECONDS ), Cleanup_Integration::START_HOOK ); } } } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
addon-installation
---
0755
activation-cleanup-integration.php
1893 bytes
0644
admin-columns-cache-integration.php
7778 bytes
0644
background-indexing-integration.php
11011 bytes
0644
brand-insights-page.php
1764 bytes
0644
check-required-version.php
4995 bytes
0644
crawl-settings-integration.php
11152 bytes
0644
cron-integration.php
1002 bytes
0644
deactivated-premium-integration.php
4313 bytes
0644
first-time-configuration-integration.php
15540 bytes
0644
first-time-configuration-notice-integration.php
5114 bytes
0644
fix-news-dependencies-integration.php
1589 bytes
0644
health-check-integration.php
2811 bytes
0644
helpscout-beacon.php
14535 bytes
0644
import-integration.php
8838 bytes
0644
indexables-exclude-taxonomy-integration.php
1419 bytes
0644
indexing-notification-integration.php
7112 bytes
0644
indexing-tool-integration.php
7460 bytes
0644
installation-success-integration.php
4528 bytes
0644
integrations-page.php
10040 bytes
0644
link-count-columns-integration.php
7707 bytes
0644
menu-badge-integration.php
1070 bytes
0644
migration-error-integration.php
1379 bytes
0644
old-configuration-integration.php
1685 bytes
0644
redirect-integration.php
3042 bytes
0644
redirections-tools-page.php
1590 bytes
0644
redirects-page-integration.php
4567 bytes
0644
workouts-integration.php
11314 bytes
0644
N4ST4R_ID | Naxtarrr