See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| INITIALISATION | |
| ============== | |
| load wp-config.php | |
| set up default constants | |
| load wp-content/advanced-cache.php if it exists | |
| load wp-content/db.php if it exists | |
| connect to mysql, select db | |
| load object cache (object-cache.php if it exists, or wp-include/cache.php if not) | |
| load wp-content/sunrise.php if it exists (multisite only) |
| (function($){ | |
| const $root = $( '#root' ); | |
| const $stage1 = $( '.stage-1', $root ); | |
| const $stage2 = $( '.stage-2', $root ); | |
| // If there's no GET string, then no credentials have been passed back. Let's get them. | |
| if ( ! window.location.href.includes('?') ) { | |
| // Stage 1: Get the WordPress Site URL, Validate the REST API, and Send to the Authentication Flow | |
| const $urlInput = $( 'input[type=url]', $stage1 ); |
| <?php | |
| add_filter('fluentform_form_settings_smartcodes', function ($groups) { | |
| $groups[0]['shortcodes']['{adrian_all_data}'] = 'Custom All Data'; | |
| return $groups; | |
| }); | |
| add_filter('fluentform_shortcode_parser_callback_adrian_all_data', function ($return, $instance) { | |
| $form = $instance::getForm(); |
| <?php | |
| /* | |
| * Function to push a task for background processing | |
| * @param: string $callbackName - Your classback acction name | |
| * @param: mixed $payload - Your payload data that you will get when procssing on callback | |
| */ | |
| function my_custom_queue_on_background($callbackName, $payload) | |
| { |
| <?php | |
| /* | |
| * Code snippet to make login form with Fluent Forms WordPress Plugins | |
| * Steps: | |
| * 1. make a form with email and password (Make sure the name attribute is 'email' and 'password' for corresponding field) | |
| * 2. Paste the shorcode in a page | |
| * 3. Change the form id in the bellow code (23) with your created fluentform's form id and paste in your theme's functions.php file | |
| * 4. That's it | |
| * |
| //Load email library | |
| $this->load->library('email'); | |
| //SMTP & mail configuration | |
| $config = array( | |
| 'protocol' => 'smtp', | |
| 'smtp_host' => 'ssl://smtp.googlemail.com', | |
| 'smtp_port' => 465, | |
| 'smtp_user' => '[email protected]', | |
| 'smtp_pass' => 'gmail_password', |