Closed szepeviktor closed 6 years ago
Instead of remove_action( 'wp_head', 'wp_oembed_add_discovery_links' ); and hooking rest_authentication_errors disable REST API later based on $request->get_route() in rest_pre_dispatch
remove_action( 'wp_head', 'wp_oembed_add_discovery_links' );
rest_authentication_errors
$request->get_route()
rest_pre_dispatch
Implemented.
Instead of
remove_action( 'wp_head', 'wp_oembed_add_discovery_links' );
and hookingrest_authentication_errors
disable REST API later based on$request->get_route()
inrest_pre_dispatch