initial sort order for a sortable custom column in admin

Instead of adding your column label “view” as a string, pass it in as an array with 1 as the second value. Like this: array(‘view’,1) Full Code: add_filter( ‘manage_edit-post_sortable_columns’, ‘my_sortable_view_column’ ); function my_sortable_view_column( $columns ) { $columns[‘post_views’] = array(‘view’,1); return $columns; } I don’t have a WP Codex for this, but I found someone else … Read more

WordPress Admins or Roles per Page

I recommend 2 plugins: User Role Editor: This plugin allows you create new roles and adjust their capabilities. Hide Admin Menu: This plugin allows you hide menu items based on user role. You just need to select which menu items will be hidden for curtain roles.

Can a users profile be put under the dashboard menu

You could just write a custom Dashboard Widget: Tutorial How to Add Custom Dashboard Widgets in WordPress In this article we will show you how you can customize dashboard widgets in WordPress. Documentation Dashboard Widgets API The Dashboard Widgets API (added in WP 2.7) makes it very simple to add new widgets to the administration … Read more

Is there a more efficient admin search function/plugin?

Altering the WHERE clause There’s a filter named posts_search that allows to filter the SQL WHERE clause used for the query during search (when WP_Query::is_search() returns true and WP_Query->s is set): add_filter( ‘posts_search’, ‘wpse134392PostsSearchSQL’, 20, 2 ); function wpse134392PostsSearchSQL( $sql, $wp_query ) { // Alter SQL clause here return $where; } Custom ORDERBY To intercept … Read more

How to remove administrator role in settings -> general -> New User Default Role?

Okay, this looks tricky, but I think it’s possible. The user-new.php file calls wp_dropdown_roles() to output the list of roles. The wp_dropdown_roles() function calls get_editable_roles() to get the list of roles to output. The get_editable_roles() function has a filter, editable_roles. So, you should be able to add a filter for editable_roles, such that, if the … Read more

Disable all https in WordPress

I don’t believe WordPress sends HTTPS requests unless it has been told to do so. It sounds like you need to undo some previous configuration — most likely change/remove the FORCE_SSL_LOGIN constant. You may have plugins participating as well though. Make sure to check that. Reference: http://codex.wordpress.org/Administration_Over_SSL