wp_localize_script with mce_external_plugins in wordpress
I am not sure if it is possible or not. Can i use wp_localize_script with mce_external_plugins filter? I want to send a variable to the tinymce plugin script. For Example: add_filter( “mce_external_plugins”, array( &$this, ‘add_test_plugin’ ) ); public function add_test_plugin( $plugin_array ){ global $pagenow; if( is_admin() && $pagenow == “post.php” || $pagenow == “post-new.php” ){ … Read more