diff --git a/includes/admin/core/class-admin-columns.php b/includes/admin/core/class-admin-columns.php index 867e4bd3..d28122d4 100644 --- a/includes/admin/core/class-admin-columns.php +++ b/includes/admin/core/class-admin-columns.php @@ -1,9 +1,11 @@ admin()->screen()->is_own_post_type() ) { + public function remove_bulk_actions_um_form_inline( $actions, $post ) { + $remove_quick_edit = array( + 'um_form', + 'um_directory', + ); + + if ( in_array( $post->post_type, $remove_quick_edit, true ) ) { unset( $actions['inline hide-if-no-js'] ); - return $actions; } + return $actions; } - /** * Custom row actions * * @param array $actions - * @param \WP_Post $post + * @param WP_Post $post * * @return mixed */ - function post_row_actions( $actions, $post ) { + public function post_row_actions( $actions, $post ) { //check for your post type - if ( $post->post_type == "um_form" ) { + if ( 'um_form' === $post->post_type ) { $actions['um_duplicate'] = '' . __( 'Duplicate', 'ultimate-member' ) . ''; } return $actions; @@ -232,7 +236,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Columns' ) ) { * Add a post display state for special UM pages in the page list table. * * @param array $post_states An array of post display states. - * @param \WP_Post $post The current post object. + * @param WP_Post $post The current post object. * * @return mixed */