admin panel save option with ajax
admin panel save option with ajax
admin panel save option with ajax
Thanks brasofilo! add_action( ‘pre_get_posts’, ‘hide_pages_to_user_except_admins’ ); function hide_pages_to_user_except_admins( $query ) { if( !is_admin() ) return $query; global $pagenow; $pages = array(‘201′,’38’,’99’); //page ids if( ‘edit.php’ == $pagenow && ( get_query_var(‘post_type’) && ‘page’ == get_query_var(‘post_type’) ) ) $query->set( ‘post__not_in’, $pages ); return $query; }
Lock Display Name To Nickname
jQuery Ajax / Modal admin event not firing since 3.6. Seems to not recognize “a” tag
How about removing the the_title calls from your theme and inserting the title as an H1 into the text. This way you truly decouple things.
Already got it: add_action( ‘views_edit-post’, ‘remove_edit_post_views’ ); function remove_edit_post_views( $views ) { $views[‘pre’] = ‘<a class=”‘.$class.'” href=”‘.admin_url().’edit.php?yourlink”>Name of Sort</a>’; return $views; } Thanks!
I think User interfaces in WordPress Admin is a good idea. It will straight away gives different views for different groups(like editors, subscribers etc..). I also think Custom post types and custom fields are introduced for this purpose. On the flip side you wouldn’t be able to completely change the look of Admin area, so … Read more
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