MP_Cron::deactivate( string $id = '' )

Removes cron task.


Parameters Parameters

$id

(string) (Optional) ID

Default value: ''


Top ↑

Source Source

File: mortgage-platform/Inc/MP_Cron.php

	public static function deactivate( $id = '' ) {

		$opts = $id ? array( $id => self::$opts[ $id ] ) : self::$opts;

		foreach ( $opts as $opt ) {
			foreach ( $opt->events as $hook => $data ) {
				wp_clear_scheduled_hook( $hook, $data['args'] );
			}
		}
	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.