Newsletters: Filter – wpml_extensions_list

Description

The wpml_extensions_list filter is used to filter through the list of extension plugins.

Usage

A plugin or theme can register an extensions list filter like this.

add_filter('wpml_extensions_list', 'myfunc_extensions_list', 10, 1);

Arguments

  • $extensions (an Array of the current extension plugins)

Example

Below is an example of using the wpml_extensions_list filter hook to add your own extension plugin to the list of extensions.

function myfunc_extensions_list($extensions = null) {
	$extensions['myextension'] = array(
		'name' 				=> 	"My Extension",
		'description'		=>	"Description for this extension",
		'link'				=>	"http://domain.com",
		'slug'				=>	'myextension',
		'plugin_name'		=>	'newsletters-myextension',
		'plugin_file'		=>	'myextension.php',
	);

	return $extensions;
}

add_filter('wpml_extensions_list', 'myfunc_extensions_list', 10, 1);

Earn Money by Referring People

Refer customers to us with your affiliate link and earn commission on sales from your link.

Get Started

Pin It on Pinterest