This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "my-wordpress-project", | |
| "description": "Downloads/updates a blank wordpress project, wpVersion to define version", | |
| "config": { | |
| "wpVersion": "6.9.1" | |
| }, | |
| "scripts": { | |
| "wp:remove": "rm -rf wordpress-*.zip wp-admin wp-includes xmlrpc.php index.php && rm -rf `find wp-*.php ! -name 'wp-config.php' ! -name 'wp-config-ddev.php'`", | |
| "wp:install": "npm run wp:remove && curl -O \"https://wordpress.org/wordpress-$npm_package_config_wpVersion.zip\" && unzip -o wordpress-$npm_package_config_wpVersion.zip && rm -rf wordpress/wp-content && mv wordpress/* . && rm -rf wordpress wordpress-$npm_package_config_wpVersion.zip", | |
| "postinstall": "npm run wp:install" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| takeLatestCancelablePerKey | |
| Works like `takeLatest`, but can filter and cancel tasks based on a unique identifier. | |
| Useful if you have multiple unique task ids firing off the same action but need them to be cancelable | |
| and fireable seperately. | |
| Code Sandbox example: https://codesandbox.io/s/distracted-faraday-gjz40 | |
| */ | |
| import { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Note that this does NOT validate server side. | |
| jQuery(document).on('gform_post_render', function($) | |
| { | |
| //#input_[form_id]_[field_id] | |
| //Get Date Field Input | |
| var $dateField = jQuery( "#input_16_6" ); | |
| var date = new Date($dateField.val()); | |
| //Get Weekday Time Dropdown fields | |
| var $mondayTimes = jQuery( "#field_16_7" ); |