Newsletters: Function – wpml_hardcode

Description

wpml_hardcode lets you hardcode a WordPress Newsletter plugin subscribe form with PHP code into any plugin or theme according to your needs.

Usage

wpml_hardcode($type = 'select', $lists = null);

Examples

Hardcode for a specific mailing list

Hardcode a subscribe form for mailing list with ID 7.

wpml_hardcode(7);

Hardcode a select drop down for all mailing lists

This will show a select drop down with all non-private mailing lists in it.

wpml_hardcode('select', null);

Hardcode a select drop down for specific mailing lists

This will show a select drop down with the mailing lists by ID as in the Array.

wpml_hardcode('select', array(1,3,7));

Hardcode a checkbox list for all mailing lists

This will show a checkbox list with all non-private lists in it.

wpml_hardcode('checkboxes', null);

Hardcode a checkbox list for specific mailing lists

This will show a checkbox list with the mailing lists by ID as in the Array.

wpml_hardcode('checkboxes', array(1,3,7));

WordPress Plugins

Start selling products, sending newsletters, publishing ads, and more through your own WordPress website using our premium WordPress plugins.

Browse

Pin It on Pinterest