Last active
September 10, 2025 12:44
-
-
Save ivandoric/c314e006b17cfee14a3b877021c692a5 to your computer and use it in GitHub Desktop.
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
| jQuery.ajax({ | |
| url: '/wp-admin/admin-ajax.php', | |
| type: 'POST', | |
| data: { | |
| action: 'update_portfolio_data' | |
| }, | |
| success: function(response) { | |
| console.log('Success:', response); | |
| }, | |
| error: function(xhr, status, error) { | |
| console.log('Error:', error); | |
| } | |
| }); | |
| fetch('/wp-json/') | |
| .then(response => { | |
| const serverDate = response.headers.get('date'); | |
| console.log('WP Server Time:', new Date(serverDate)); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment