Plugin for Contact Form 7 WordPress plugin. More information can be found here.
https://contactform7.com/2020/07/28/accessing-user-input-data/
WPCF7_Service- integration should implement class and be added toWPCF7_Integrationwithadd_serviceto be displayed in integration list
wpcf7_initPlugin initiated. Register Omnisend service.wpcf7_submitWebsite user submitted form. Check and send contact to Omnisend.wpcf7_save_contact_formAdmin user saved/modified form - save Omnisend related data to form.
wpcf7_editor_panelsAdd Omnisend configuration panel for selected form.wpcf7_pre_construct_contact_form_propertiesConstructs contact form properties. This is called only once from the constructor.
WordPress.org team mandates our plugin to be linted against WordPress coding standards.
After each push to any branch PHP Standards action will run and all the PHP code will be linted. See action output for results.
Tools needed:
- php (7.4 version is recommended because at the time of writing WordPress coding standards supports only up to 7.4 version);
- composer (can be installed as described in https://getcomposer.org/doc/00-intro.md#installation-linux-unix-macos);
After installing those tools one can run in local plugin dir (omnisend-for-contact-form-7) helper script:
./lint.sh check
./lint.sh fixor all commands manually. Following commands
composer update
composer installinstall linting tool and standards. And then actual linting phpcs script can be initiated with
./vendor/squizlabs/php_codesniffer/bin/phpcs --ignore=.js --standard=WordPress omnisend-connectA second phpcbf script can be run to automatically correct coding standard violations:
./vendor/squizlabs/php_codesniffer/bin/phpcbf --ignore=.js --standard=WordPress omnisend-connect