您可以向名为post_row_actions
.
下面是一个示例代码:(确保替换my-cpt
实际职位类型名称)
add_filter( \'post_row_actions\', \'my_cpt_row_actions\', 10, 2 );
function my_cpt_row_actions( $actions, $post ) {
if ( \'my-cpt\' === $post->post_type ) {
// Removes the "Quick Edit" action.
unset( $actions[\'inline hide-if-no-js\'] );
}
return $actions;
}