Plugin Name: random plug
Plugin URI: http://example.com/wordpress-plugins/my-plugin
Description: A plugin demonstrating Cron in WordPress
Version: 1.0
Author: Brad Williams
Author URI: http://wrox.com
License: GPLv2

add_action('init', 'register_tagging_post');

 function register_tagging_post(){
       $tagging_args = array(
           'public' => true,
           'supports' => array(

           'query_var' => 'tagging',
           'rewrite' => array(
              'slug' => 'tagging',
              'with_front' => false
            'labels' => array(
            'name' => 'Tagge Albums',
            'singular_name' => 'Album',
            'add_new' => 'Add New Album',
            'add_new_item' => 'Add New Album',
            'edit_item' => 'Edit Album',
            'new_item' => 'New Album',
            'view_item' => 'View Album',
            'search_items' => 'Search Albums',
            'not_found' => 'No Albums Found',
            'not_found_in_trash' => 'No Albums Found In Trash'


       register_post_type('tagging', $tagging_args);




This is my plugin created, I want to ask why the firebug produced an error:

TypeError: tinymce.onAddEditor is undefined

when i enqueue the tinymce script and it is not functioning?

  • Why do you need to enqueue TinyMCE from external site? Where exactly error originates from? – Rarst Feb 6 '14 at 18:13
  • When you view the page source, do you find your TinyMCE included? Try using the wp_enqueue_scripts hook instead. – Seamus Leahy Feb 8 '14 at 5:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.