WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

Yoast\WP\SEO\Routes

Workouts_Route::get_workouts() public Yoast 1.0

Returns the workouts as configured for the site.

{} Это метод класса: Workouts_Route{}

Хуки из метода

Возвращает

WP_REST_Response. the configuration of the workouts.

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

$Workouts_Route = new Workouts_Route();
$Workouts_Route->get_workouts();

Код Workouts_Route::get_workouts() Yoast 17.9

public function get_workouts() {
	$workouts_option = $this->options_helper->get( 'workouts_data' );

	/**
	 * Filter: 'Yoast\WP\SEO\workouts_options' - Allows adding workouts options by the add-ons.
	 *
	 * @api array $workouts_option The content of the `workouts_data` option in Free.
	 */
	$workouts_option = \apply_filters( 'Yoast\WP\SEO\workouts_options', $workouts_option );

	return new WP_REST_Response(
		[ 'json' => $workouts_option ]
	);
}