Hot answers tagged

7

In wp-admin/includes/update.php file if ( current_user_can('update_core') ) $msg = sprintf( __('An automated WordPress update has failed to complete - <a href="%s">please attempt the update again now</a>.'), 'update-core.php' ); else $msg = __('An automated WordPress update has failed to complete! Please notify the site ...


5

You can try below code - <?php global $current_user; if ((is_user_logged_in() && $current_user->ID == $post->post_author) || current_user_can( 'manage_options' )) { echo 'my post'; } ?> Check below link also- https://codex.wordpress.org/Function_Reference/current_user_can


1

You need to make a custom query to display these pending posts. Here is an example using get_posts(): $args = array( 'post_type' => 'post_type_name', 'post_status' => 'pending', // -1 shows all 'posts_per_page' => -1, ); $pending_posts = get_posts( $args ); foreach( $pending_posts as $pending_post ) { // post object properties ...


1

@bravokeyl is the probably the best answer to your immediate problem. But to address the following: Is there a way to hook into an action or filter and remove ALL the update nag messages for non-admin users? No. Nag messages in WordPress are just a callback to added to the admin_notices hook which print some HTML to the page. They are practically ...


1

While you can't edit the dropdown list, you can achieve what you want as long as you are able to edit your theme or if your theme uses the standard the_author() template tag. To recast your question, you want: Editor's names to show as Name + nickname + surname Other names to show as nickname No-one to be able to change this except Admins I'm assuming ...



Only top voted, non community-wiki answers of a minimum length are eligible