Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter( 'bulk_post_updated_messages', 'donation_bulk_messages', 10, 2 );
- function donation_bulk_messages( $bulk_messages, $bulk_counts ) {
- $post_obj = get_post_type_object( 'donation' );
- $singular = strtolower( $post_obj->labels->singular_name );
- $plural = strtolower( $post_obj->labels->name );
- $bulk_messages[ 'donation' ] = array(
- 'updated' => _n( "%d $singular updated.", "%d $plural updated.", $bulk_counts['updated'], 'charitable' ),
- 'locked' => ( 1 == $bulk_counts['locked'] ) ? __( "1 $singular not updated, somebody is editing it." ) :
- _n( "%s $singular not updated, somebody is editing it.", "%s $plural not updated, somebody is editing them.", $bulk_counts['locked'], 'charitable' ),
- 'deleted' => _n( "%s $singular permanently deleted.", "%s $plural permanently deleted.", $bulk_counts['deleted'], 'charitable' ),
- 'trashed' => _n( "%s $singular moved to the Trash.", "%s $plural moved to the Trash.", $bulk_counts['trashed'], 'charitable' ),
- 'untrashed' => _n( "%s $singular restored from the Trash.", "%s $plural restored from the Trash.", $bulk_counts['untrashed'], 'charitable' ),
- );
- return $bulk_messages;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement