Add Support for Your Plugin to WP Butler
Adding new actions to WP Butler for your plugin is easy!
Here is an example which adds a new action called “Dashboard”, and will take you to the Admin Dashboard:
add_filter( 'wp_butler_ajax_actions', 'japh_new_butler_actions' );
function japh_new_butler_actions( $actions ) {
array_push( $actions, array( "label" => "Dashboard", "url" => "index.php" ) );
return $actions;
}