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

Add custom bulk action updated messages for topics.


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/topics.php

	public function bulk_post_updated_messages( $bulk_messages, $bulk_counts ) {
		$bulk_messages['topic']['updated'] = _n( '%s topic updated.', '%s topics updated.', $bulk_counts['updated'], 'bbpress' );
		$bulk_messages['topic']['locked']  = ( 1 === $bulk_counts['locked'] )
			? __( '1 topic not updated, somebody is editing it.', 'bbpress' )
			: _n( '%s topic not updated, somebody is editing it.', '%s topics 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.