problem after coding (wordpress)

Status
Not open for further replies.

logger

Active Member
470
2012
38
290
hi guys,

i was about to make a change in THEME FUNCTION (wordpress) ..

i've just added this code in order to have a chance to remove links ''Embedding,,

function disable_embeds_init() {
// Remove the REST API endpoint.
remove_action('rest_api_init', 'wp_oembed_register_route');
// Turn off oEmbed auto discovery.
// Don't filter oEmbed results.
remove_filter('oembed_dataparse', 'wp_filter_oembed_result', 10);
// Remove oEmbed discovery links.
remove_action('wp_head', 'wp_oembed_add_discovery_links');
// Remove oEmbed-specific JavaScript from the front-end and back-end.
remove_action('wp_head', 'wp_oembed_add_host_js');
}
add_action('init', 'disable_embeds_init', 9999);

I updated but something went wrong even removing it completely and updating site messed up.
Can u help me on that?
thanks


if u fill full confident on how o solve issue ,paying 10$...
i don't access of course to site,only to panel.
 
1 comment
Status
Not open for further replies.
Back
Top