Newsletters: Action – wpml_metabox_extensions_settings

Description

wpml_metabox_extensions_settings fires where the Newsletters > Extensions > Settings tab metaboxes are output for extensions settings.

Arguments

$page (the page id/slug/name which is used to hook the metabox on)

Example

Below is an example of how to use the wpml_metabox_extensions_settings hook.

function myfunc_metaboxes_extensions_settings($page = null) {
	add_meta_box('metaboxid', "Metabox Title", 'myfunc_metabox', $page, 'normal', 'core');
}

add_action('wpml_metaboxes_extensions_settings', 'myfunc_metaboxes_extensions_settings', 10, 1);

function myfunc_metabox() {
	//Create a table here with some settings...
	//<table class="form-table"><tbody><tr><th>Setting</th><td><input......
	//You can then capture any fields with the wmpl_extensions_settings_saved hook
}

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