Make external request after saving
-
Hi, when user saves changes in visual editor, i need to send a request to external page.
I’m trying this approach but not getting success. Some help?
function elementor_save_camps($post_id, $editor_data){ $url = 'https://externalsite/?url='.get_permalink($post_id); $r = wp_remote_get( $url ); // tried this too wp_remote_head($url) } add_action( 'elementor/editor/after_save', 'elementor_save_camps');I’m adding this to my theme functions.php
When clicking on save button of visual editor, data is saved normally in wp database but the request is not made 🙁
Kind regards.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Make external request after saving’ is closed to new replies.