Hardcoding

The subscription form hardcoding feature allows you to insert a mailing list subscription form into your Wordpress theme by using PHP code directly inside of your template files.

In order to hardcode a subscription form, open any of your theme .php files inside the theme folder which is located inside “/wp-content/themes/“. Below are some examples.

Initialize

Always insert this line first to initialize the wpMail class before executing the hardcoded function.

<?php $wpMail = new wpMail(); ?>

Specific Mailing List

Insert a subscription form for a specific mailing list using the ID of the mailing list as the first parameter for the hardcoded function.

<?php $wpMail -> hardcoded(3); ?>

Select Drop Down

Insert a subscription form with a select drop down menu showing all your available, non-private mailing lists in the database.

<?php $wpMail -> hardcoded(’select’); ?>

Multiple Mailing Lists

Allow subscribers to choose multiple mailing lists they wish to subscribe to using a list of checkboxes with all your available, non-private mailing lists in the database.

<?php $wpMail -> hardcoded(‘checkboxes’); ?>