epl_whats_new_items: the What's New headlines on the welcome page

Description #

Changes the headlines on the What's New tab of the Easy Property Listings welcome page (the page you see after updating). EPL shows a few headlines for the release and a button to the full post on easypropertylistings.com.au.

Use it to add a headline of your own, change the wording, or remove the headlines.


Usage #

add_filter( 'epl_whats_new_items', 'my_whats_new_items' );

Parameters #

$items (array)
A list of headlines. Each is an array with a title and a text. Both are shown as plain text (HTML is escaped). Return an empty array to show no headlines; the button to the full post still shows.


Examples #

Add a headline:

function my_whats_new_items( $items ) {
	$items[] = array(
		'title' => 'New: suburb pages',
		'text'  => 'Each suburb now has its own page of listings.',
	);
	return $items;
}
add_filter( 'epl_whats_new_items', 'my_whats_new_items' );

Remove the headlines:

add_filter( 'epl_whats_new_items', '__return_empty_array' );

Source #

lib/includes/admin/menus/class-epl-welcome.php, in EPL_Welcome::get_whats_new(). Since 3.6.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.