ActionScheduler_AdminView_Deprecated::admin_notices()public staticWC 1.0

Convert an interval of seconds into a two part human friendly string.

The WordPress human_time_diff() function only calculates the time difference to one degree, meaning even if an action is 1 day and 11 hours away, it will display "1 day". This funciton goes one step further to display two degrees of accuracy.

Based on Crontrol::interval() function by Edward Dale: https://wordpress.org/plugins/wp-crontrol/

Метод класса: ActionScheduler_AdminView_Deprecated{}

Хуков нет.

Возвращает

Строку. A human friendly string representation of the interval.

Использование

$result = ActionScheduler_AdminView_Deprecated::admin_notices();

Код ActionScheduler_AdminView_Deprecated::admin_notices() WC 8.7.0

public static function admin_notices() {
	_deprecated_function( __METHOD__, '2.0.0' );
}