Pergunta

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.

Foi útil?

Solução

WordPress does not automatically convert URLs to hyperlinks.

Outras dicas

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 );
Licenciado em: CC-BY-SA com atribuição
Não afiliado a wordpress.stackexchange
scroll top