WPCF7_List_Table::get_bulk_actions │ protected │ CF7 1.0

Метод класса: WPCF7_List_Table{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_bulk_actions();

Код WPCF7_List_Table::get_bulk_actions() CF7 6.2.4.1

protected function get_bulk_actions() {
	$post_type_obj = get_post_type_object( WPCF7_ContactForm::post_type );

	if ( current_user_can( $post_type_obj->cap->edit_posts ) ) {
		return array(
			'delete' => __( 'Delete', 'contact-form-7' ),
		);
	} else {
		return array();
	}
}