Adding pages to the Admin panel

If I get you correctly, you are trying to add a new menu to the Admin Panel. For that, the following tutorial would be one of the best for you to such: The Complete Guide To The WordPress Settings API (Part I – VIII) The key things are: add_menu_page() add_submenu_page() add_theme_page() – for theme options … Read more

Add a link to the Admin menu

You can intercept the global $submenu var and add the desired elements: add_action(‘admin_menu’, ‘add_custom_submenus’, 999); function add_custom_submenus() { global $submenu; $submenu[‘edit.php’][] = array( __(‘Published’), // menu title ‘edit_posts’, // menu cap ‘edit.php?post_status=publish&post_type=post’ // menu link ); $submenu[‘edit.php’][] = array( __(‘Scheduled’), ‘edit_posts’, ‘edit.php?post_status=future&post_type=post’ ); $submenu[‘upload.php’][] = array( __(‘Unattached’), ‘upload_files’, ‘upload.php?detached=1’ ); }

Clear custom field when new tag is added

Could you do something like this? function tag-added-script() { ?> <script> jQuery(function($) { $(‘.tagadd’).click(function() { // Run Your Jquery Here alert(‘test’); }); }); </script> <?php } add_action( ‘admin_head’, ‘tag-added-script’ ); The above will react whenever the “tagadd” button is clicked. Theoretically you could then grab the custom field ID and clear it via jquery.

Custom admin menu for a selection of pages

Approach 1: You could assign the role of “editor” to the user, assign the user as author of the three pages and thereafter limit the user to editing only those three pages by following this outlined methodology: http://www.godaisies.com/2010/08/23/how-to-make-editors-only-able-to-edit-their-own-page-in-wordpress/ This however does not fulfill your requirement of a dedicated custom admin page. It simply limits what … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)