Download the PHP package jimderonde/wp-mailer without Composer
On this page you can find all versions of the php package jimderonde/wp-mailer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download jimderonde/wp-mailer
More information about jimderonde/wp-mailer
Files in jimderonde/wp-mailer
Download jimderonde/wp-mailer
More information about jimderonde/wp-mailer
Files in jimderonde/wp-mailer
Vendor jimderonde
Package wp-mailer
Short Description Composer package for Gewest13's Wordpress mailer.
License MIT
Package wp-mailer
Short Description Composer package for Gewest13's Wordpress mailer.
License MIT
Please rate this library. Is it a good library?
Informations about the package wp-mailer
Wordpress Mailer
This is a Wordpress module developed by Jim de Ronde (Gewest13).
Prerequisites
- ACF Pro
Installation
Do this first.
- Clone the repository in your
server/
directory. - Do a
composer install
inside the folder. - Require or include the
server/wp-mailer/autoload.php
into yourfunctions.php
file. -
Please note that a hook within Wordpress is including a javascript file into the footer. Import it as you like whenever you desire a bundle over multiple javascript files.
When this is done a first form can be added.
- Create a
.env
file in the root of your template folder with the credentials as presented in the example file.example.env
. - Create a new form and add any field to your liking.
- Add the
/sample-component/
to your list of components/. Please note that the form will require some predefined settings like anaction
,data-wp-mailer
andmethod
. - At last, please include
wp_footer()
before the ending of your</body>
tag. Please not that the entire function will be cleared and will only return the javascript file that will take care of the asynchronous requests. - If desired, add the following rule to your
.css
file in order to hide the badge:.grecaptcha-badge {display: none}
Functions
Always check if $mailer
is a valid instance of the Mailer
class.
- Use
$mailer->getForm($id)
to get all form fields. - Then, use a
foreach
loop to loop through all fields.foreach ($mailer->getForm($id) as $name => $field)
. - Inside the loop the
$field->field
variable will contain the entire html element so use$mailer->parseField($field->field, "classes")
to parse it. - Label can be accessed through
$field->label
. - Name can be accessed through
$field->name
. - Field type can be accessed through
$field->type
.
All versions of wp-mailer with dependencies
PHP Build Version
Package Version
The package jimderonde/wp-mailer contains the following files
Loading the files please wait ....