Change WordPress user roles and capabilities › Forums › Restrict or Permit access inside WordPress – how to › Need to restrict user access to plugin WP Auto Republish › Reply To: Need to restrict user access to plugin WP Auto Republish
07/06/2020 at 19:43
#6909
roromano
Participant
Never mind! I figured out an alternative:
add_filter( ‘post_row_actions’, ‘remove_row_actions’, 10, 1 );
function remove_row_actions( $actions )
{
if( get_post_type() === ‘post’ )
unset( $actions[‘republish’] );
return $actions;
}