Automattic\WooCommerce\Admin\API
MobileAppMagicLink::register_routes()
Register routes.
Метод класса: MobileAppMagicLink{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$MobileAppMagicLink = new MobileAppMagicLink(); $MobileAppMagicLink->register_routes();
Список изменений
С версии 7.0.0 | Введена. |
Код MobileAppMagicLink::register_routes() MobileAppMagicLink::register routes WC 9.5.1
public function register_routes() { register_rest_route( $this->namespace, '/' . $this->rest_base . '/send-magic-link', array( array( 'methods' => \WP_REST_Server::READABLE, 'callback' => array( $this, 'send_magic_link' ), 'permission_callback' => array( $this, 'get_items_permissions_check' ), ), 'schema' => array( $this, 'get_public_item_schema' ), ) ); parent::register_routes(); }