Created
August 7, 2015 02:56
-
-
Save designbuildtest/5d03753e43229e4f0274 to your computer and use it in GitHub Desktop.
WordPress remove QUICK EDIT and VIEW inline actions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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