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));
Shares

WordPress Optimized Hosting

Get the best WordPress hosting for speed, security and peace of mind. No restrictions, freedom to do what you need in order to run your business.

Host Now

Pin It on Pinterest

%d bloggers like this: