function.php
function remove_quick_edit( $actions, $post) {
if ($post->post_type =="tribe_events"){
unset($actions['inline hide-if-no-js']);
unset($actions['edit']);
unset($actions['trash']);
unset($actions['view']);
}
return $actions;
}
add_filter('post_row_actions','remove_quick_edit',10,2);
function remove_quick_edit( $actions, $post) {
if ($post->post_type =="tribe_events"){
unset($actions['inline hide-if-no-js']);
unset($actions['edit']);
unset($actions['trash']);
unset($actions['view']);
}
return $actions;
}
add_filter('post_row_actions','remove_quick_edit',10,2);
No comments:
Post a Comment