Created
December 15, 2016 13:52
-
-
Save SirDarcanos/747b91edbd5842ab2b82461640249599 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Adds a new item into the Bulk Actions dropdown. | |
*/ | |
function register_my_bulk_actions( $bulk_actions ) { | |
$bulk_actions['draft_posts'] = __( 'Move to Draft', 'domain' ); | |
return $bulk_actions; | |
} | |
add_filter( 'bulk_actions-edit-post', 'register_my_bulk_actions' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment