Created
January 20, 2015 21:35
-
-
Save musicalbigfoot/6422d8708396f8243f63 to your computer and use it in GitHub Desktop.
remove quick edit links
This file contains 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
//removes quick edit from custom post type list | |
function remove_quick_edit( $actions ) { | |
global $post; | |
if( $post->post_type == 'dogs' ) { | |
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