May 2017
Beginner to intermediate
536 pages
14h 25m
English
In the default post list, we can see different options called Edit, Move to Trash, and so on inside the Bulk Actions drop-down. Similarly, we can include custom actions in custom lists. This is one of the most powerful features of this list, in implementing complex requirements in web applications. Consider the modified implementation of the get_bulk_actions function:
function get_bulk_actions() { $actions = array( 'subscribe' => __('Subscribe','wpwaf'), 'unsubscribe' => __('Unsubscribe','wpwaf') ); return $actions; }
The preceding function is prebuilt and returns a list of actions to be included in the drop-down. In this scenario, we need users to subscribe and unsubscribe to topics. Hence, ...
Read now
Unlock full access