Hook into create_category

You could use the get_term_by() function: http://codex.wordpress.org/Function_Reference/get_term_by // get the category object $category = get_term_by( ‘id’, $category_id, ‘category’); // use the object to get your values $name = $category->name; $slug = $category->slug; Does this help?

can’t access dashboard and showing forbidden page

Here is the short sweet answer. Somewhere you, a plugin, or your theme are doing something like this: wp_register_script( ‘myscript’, get_template_directory_uri() . ‘/path/to/myscript.js’, ”, ”, true ); What should be happening is this: add_action( ‘wp_enqueue_scripts’, function() { wp_register_script( ‘myscript’, get_template_directory_uri() . ‘/path/to/myscript.js’, ”, ”, true ); } ); From the Notice: Scripts and styles should … Read more

How to change value of $menu_class in ep_nav_menu?

There is no need to add any code for this. You can use the Screen Options on the menu admin end to achieve this. Please check the instructions below. Login to the admin end of your wordpress site and navigate to Appearance => Menus section. Click the down arrow against the menu item you need … Read more

fire action when post is being edited as well as saved?

The documentation for the save_post action says: save_post is an action triggered whenever a post or page is created or updated, which could be from an import, post/page edit form, xmlrpc, or post by email. So, you should only need the save_post action to run the desired code when the post is changed.