• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Yoast SEO a2z

Yoast SEO a2z

WordPress SEO a2z

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / Cleanup_Integration::start_cron_job() – Starts the cleanup cron job.

You appear to be a bot. Output may be restricted

Description

Starts the cleanup cron job.

Usage

$void = Cleanup_Integration::start_cron_job( $task_name );

Parameters

$task_name
( string ) required – The task name of the next cleanup task to run.

Returns

void

Source

File name: wordpress-seo/src/integrations/cleanup-integration.php


Lines:

1 to 9 of 9
  private function start_cron_job( $task_name ) {
    \update_option( self::CURRENT_TASK_OPTION, $task_name );
    \wp_schedule_event(
      ( \time() + \HOUR_IN_SECONDS ),
      'hourly',
      self::CRON_HOOK
    );
  }
 

 View on GitHub View on Trac

Published: 14th November 2021 | Last updated: 14th November 2021

Primary Sidebar

Information

Function name: Cleanup_Integration::start_cron_job
Class ref: Cleanup_Integration
Plugin ref: Yoast SEO
Version: 19.9
Sourcefile: src/integrations/cleanup-integration.php
File ref: src/integrations/cleanup-integration.php
Deprecated?: No
API Letters: C,I,J,S

Footer

Yoast SEO a2z
Yoast SEO a2z
WordPress SEO a2z
WordPress 6.1.1
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  wordpress-seo.wp-a2z.org
© Copyright Yoast SEO a2z 2017-2023. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites