The Contact 2.0 update cleans up code bringing it in line with current best practices, and introduces several actions and filters to allow developers to customize the email sent.
This update includes the following changes:
- NEW: Introduce actions and filters to allow email to be customized prior to being sent.
- NEW: Introduce
Connections_Contact::getBaseURL()
. - TWEAK: Use
sanitize_textarea_field()
instead ofsanitize_text_field()
on email message body. - TWEAK: Set plugin class final.
- TWEAK: Add base class plugin properties.
- TWEAK: Utilize
Connections_Contact::getBaseURL()
when registering scripts. - TWEAK: Rename
Connections_Contact::init()
toConnections_Contact::registerHooks()
. - TWEAK: Utilize
cnText_Domain::register()
to register translations. - TWEAK: Move license and updater registration to plugin object init.
- TWEAK: Remove object constants as they are not used.
- TWEAK: Add missing object instance of check.
- TWEAK: Move where the core plugin object is initiated.
- TWEAK: Run the POST
entry_id
variable thruabsint()
. - TWEAK: Assign email subject and message to variables.
- OTHER: Remove unnecessary semi-colon.
- OTHER: Update plugin header name.
- OTHER: Correct misspelling.
- OTHER: Remove unnecessary line returns.
- OTHER: Update copyright year.
- OTHER: Correct typo.
- DEV: phpDoc corrections.
- DEV: Remove commented out code.
- DEV: Remove call to a nonexistent method.