Created
April 15, 2017 22:00
-
-
Save anythinggraphic/bef63d1bdddf3d44139a24ddee91bf16 to your computer and use it in GitHub Desktop.
Paste As Text by default in the WordPress editor.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* @link https://anythinggraphic.net/paste-as-text-by-default-in-wordpress | |
/* Use Paste As Text by default in the editor | |
----------------------------------------------------------------------------------------*/ | |
add_filter('tiny_mce_before_init', 'ag_tinymce_paste_as_text'); | |
function ag_tinymce_paste_as_text( $init ) { | |
$init['paste_as_text'] = true; | |
return $init; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment