This file contains 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
add_action('wp_ajax_testAction', 'testActionFunction'); | |
add_action('wp_ajax_nopriv_testAction', 'testActionFunction'); // only include if non-logged in users should be able to do this | |
function testActionFunction(){ | |
//You can catch variables like this | |
$name = !empty($_POST['name'])?$_POST['name']:''; | |
// You return data by echo it or by wp_send_json | |
echo $name; |
This file contains 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
const fetchMachine = Machine({ | |
id: 'fetch', | |
initial: 'c9e177d3-43cb-45b4-93ab-34371b0d317f', | |
context: { | |
retries: 0 | |
}, | |
states: { | |
"c9e177d3-43cb-45b4-93ab-34371b0d317f": { | |
"__typename": "XState", |
This file contains 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
{ | |
"exportFormatVersion": 2, | |
"exportTime": "2024-12-18 14:44:29", | |
"containerVersion": { | |
"path": "accounts/6260567265/containers/202414991/versions/0", | |
"accountId": "6260567265", | |
"containerId": "202414991", | |
"containerVersionId": "0", | |
"container": { | |
"path": "accounts/6260567265/containers/202414991", |
OlderNewer