Yoast\WP\SEO\Routes
Importing_Route::get_endpoint()
Gets the right endpoint for the given arguments.
Метод класса: Importing_Route{}
Хуков нет.
Возвращает
Строку|false
. The endpoint for the given action or false on failure of finding the one.
Использование
$Importing_Route = new Importing_Route(); $Importing_Route->get_endpoint( $plugin, $type );
- $plugin(строка) (обязательный)
- The plugin to import from.
- $type(строка) (обязательный)
- The type of entity to import.
Код Importing_Route::get_endpoint() Importing Route::get endpoint Yoast 24.6
public function get_endpoint( $plugin, $type ) { if ( empty( $plugin ) || empty( $type ) ) { return false; } return Main::API_V1_NAMESPACE . "/import/{$plugin}/{$type}"; }