BBP_Replies_Admin::bulk_post_updated_messages( array $bulk_messages, array $bulk_counts )

Add custom bulk action updated messages for replies.


Description Description


Parameters Parameters

$bulk_messages

(Required) Arrays of messages, each keyed by the corresponding post type.

$bulk_counts

(Required) Array of item counts for each message, used to build internationalized strings.


Top ↑

Source Source

File: includes/admin/replies.php

	public function bulk_post_updated_messages( $bulk_messages, $bulk_counts ) {
		$bulk_messages['reply']['updated'] = _n( '%s reply updated.', '%s replies updated.', $bulk_counts['updated'], 'bbpress');
		$bulk_messages['reply']['locked']  = ( 1 === $bulk_counts['locked'] )
			? __( '1 reply not updated, somebody is editing it.', 'bbpress' )
			: _n( '%s reply not updated, somebody is editing it.', '%s replies not updated, somebody is editing them.', $bulk_counts['locked'], 'bbpress' );

		return $bulk_messages;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.