Skip to content

Instantly share code, notes, and snippets.

@designbuildtest
Created August 7, 2015 02:56
Show Gist options
  • Select an option

  • Save designbuildtest/5d03753e43229e4f0274 to your computer and use it in GitHub Desktop.

Select an option

Save designbuildtest/5d03753e43229e4f0274 to your computer and use it in GitHub Desktop.
WordPress remove QUICK EDIT and VIEW inline actions
function dbt_remove_page_quick_edit_inline_action( $actions ) {
unset( $actions['inline hide-if-no-js'] );
unset( $actions['view'] );
return $actions;
}
add_filter( 'post_row_actions', 'dbt_remove_page_quick_edit_inline_action', 10, 1 ); // Posts & Post-lik CPT's
add_filter( 'page_row_actions', 'dbt_remove_page_quick_edit_inline_action', 10, 1 ); // Pages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment