Disable automatic content hyperlinking
-
16-10-2019 - |
سؤال
How can I prevent WordPress from converting links in my page content into hyperlinks?
For example if I write http://www.test.com I don't want it converted to a link.
المحلول
WordPress does not automatically convert URLs to hyperlinks.
نصائح أخرى
It's the Editor TinyMCE's embed plugin to disable it you will also need to disable all other embeds (twitter, images, youtube, etc)
If you still want to proceed, then enter this code in your theme's functions.php
function disable_embeds_code_init() {
wp_deregister_script('wp-embed');
add_filter( 'tiny_mce_plugins', 'disable_embeds_tiny_mce_plugin' );
}
add_action( 'init', 'disable_embeds_code_init', 11 );
لا تنتمي إلى wordpress.stackexchange