May 2017
Beginner to intermediate
536 pages
14h 25m
English
We have discussed all the major features of the admin post list, such as custom actions, filtering, and post statuses. Finally, we will complete this section by using custom columns in post lists. The custom post list usually displays title and date columns in the post list. Consider our forum application with managing topics. Generally, we would need the topic sticky status and date in the list to make it easier to manage multiple topics at the same time. Let's take a look at the following code for adding custom columns to the list:
add_filter( 'manage_edit-wpwaf_topic_columns', 'wpwaf_topic_list_columns' ) ; function wpwaf_topic_list_columns( $columns ) { $columns = array( 'cb' => '<input type="checkbox" ...Read now
Unlock full access