Creating an custom admin page for editing widgets
Creating an custom admin page for editing widgets
Creating an custom admin page for editing widgets
Customize Admin Section
This is a tough one, but I would start here: Add new “Insert Into Post” button with another function. Below is some code to get started with adding the field via http://rider.sofarider.com/wordpress-tips-and-tricks/extra-input-field-to-add-an-image-panel/ From there, try something like the second code block. <?php function attachment_url_extra( $form_fields, $post ) { // input field relates to attachments // … Read more
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
Change the Author name to a custom field?
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’ ); }
Use phpMyAdmin then. MAKE A BACKUP before you do this! In the table wp_X_options (where X is that site’s ID number), under the option_name column (field) find the active_plugins row. Change the option_value field to: a:0:{} Ref : link
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 styles and scripts for specific admin screen
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