Last active
August 29, 2015 14:01
-
-
Save fernandofuly/e46c800d9fac948f1d06 to your computer and use it in GitHub Desktop.
Remove "Quick Edit" from Custom Post Types
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
// Remove "Quick Edit" from Custom Post Types | |
function remove_quick_edit( $actions ) { | |
global $post; | |
if( $post->post_type == 'Custom_Post_Name_Here' ) { | |
unset($actions['inline hide-if-no-js']); | |
} | |
return $actions; | |
} | |
if (is_admin()) { | |
add_filter('post_row_actions','remove_quick_edit',10,2); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment