Recent

Bulk_Edit class

Bulk_Edit

Class Bulk Edit functionality.

Namespace: WebberZone\Contextual_Related_Posts\Admin
Since: 3.4.0
Source: includes/admin/class-bulk-edit.php line 21

Methods

__construct()

CRP_Bulk_Edit constructor.

Line: 26

public function __construct(  );

enqueue_scripts()

Enqueue scripts and styles.

Line: 40

public function enqueue_scripts( $hook );
TypeNameDescription
string$hookThe current admin page.

add_custom_columns()

Add custom columns to the posts list table.

Line: 69

public function add_custom_columns(  );

add_admin_columns()

Add custom columns to the posts list table.

Line: 86

public function add_admin_columns( $columns ): array;
TypeNameDescription
array$columnsThe existing columns.

Returns: array — The modified columns.

populate_custom_columns()

Populate the custom columns with data.

Line: 97

public function populate_custom_columns( $column_name, $post_id );
TypeNameDescription
string$column_nameThe name of the column.
int$post_idThe ID of the post.

quick_edit_custom_box()

Add custom field to quick edit screen.

Line: 136

public function quick_edit_custom_box( $column_name );
TypeNameDescription
string$column_nameThe name of the column.

save_post_meta()

Save custom field data.

Line: 182

public function save_post_meta( $post_id );
TypeNameDescription
int$post_idThe post ID.

save_bulk_edit()

Save bulk edit data.

Line: 223

public function save_bulk_edit(  );