Send automatic mail to Admin when user/member changes/adds profile

you got the first part right about using personal_options_update but to be on the safe side add edit_user_profile_update also. and as for sending emails within WordPress the best way would be to use wp_mail, So something like this: add_action( ‘personal_options_update’, ‘notify_admin_on_update’ ); add_action( ‘edit_user_profile_update’,’notify_admin_on_update’); function notify_admin_on_update(){ global $current_user; get_currentuserinfo(); if (!current_user_can( ‘administrator’ )){// avoid sending … Read more

Redirect Admin User in Dashboard

You should not use Userlevels. Userlevels have been replaced in WP 2.0 and have been officially deprecated since 3.0 add_filter( ‘login_redirect’, ‘dashboard_redirect’ ); function dashboard_redirect( $url ) { if ( current_user_can( ‘manage_options’ ) ) { $url = esc_url( admin_url( ‘edit.php’ ) ); } return $url; } Will do what you want.

turn off new user registration emails

Generic Pluggable Approach for WordPress < 4.6 (See @birgire’s Answer for > 4.6) Pluggable functions are one of the more depressing relics of WordPress’s past and come with a slew of intricacies. That directly modifying the core file (which is entirely inadvisable, as @Jarmerson mentioned in the comments) did not work makes me suspect that … Read more

WordPress admin screen very slow / timing out when editing or adding a new page/custom post

This may not help any, but it can’t hurt to try it… Log into your server admin area, invoke the client interface for your database administration (e.g. phpMyAdmin), delete all the posts where their ‘type’ is marked as a revision, then compact the table. If you have thousands of pages, you might also have millions … Read more

Showing WP_Error message with admin_notice action hook

You can use function add_settings_error. More details can be found in the WordPress documentation. I have edited your previous answer to include that: function wpse_189722_limit_tag_words( $term, $taxonomy ) { if ($taxonomy === ‘post_tag’) { if ( count( preg_split( ‘/\s+/’, trim( $term ) ) ) > 2 ) { add_settings_error(‘term_too_many_words’, ‘term_too_many_words’, ‘Maximum of 2 words allowed, … Read more

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