Yoast\WP\SEO\Routes
Settings_Introduction_Route::get_show()
Gets the value of show.
Метод класса: Settings_Introduction_Route{}
Хуков нет.
Возвращает
WP_REST_Response|WP_Error
. The response, or an error.
Использование
$Settings_Introduction_Route = new Settings_Introduction_Route(); $Settings_Introduction_Route->get_show();
Код Settings_Introduction_Route::get_show() Settings Introduction Route::get show Yoast 20.4
public function get_show() { try { $value = $this->settings_introduction_action->get_show(); } catch ( Exception $exception ) { return new WP_Error( 'wpseo_settings_introduction_error', $exception->getMessage(), (object) [] ); } return new WP_REST_Response( [ 'json' => (object) [ 'value' => $value, ], ] ); }