Skip to content
WJunction - Webmaster Forum

problem after coding (wordpress)

Status
Not open for further replies.
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.

About the author

L
Active Member · Joined
locking for uploaders .paid: https://www.wjunction.com/threads/hiring-uploaders.246901/
470
Messages
38
Reactions
28
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom