Title: Make external request after saving
Last modified: February 19, 2019

---

# Make external request after saving

 *  Resolved [regijorge](https://wordpress.org/support/users/regijorge/)
 * (@regijorge)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/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)

 *  [Donna Fontenot](https://wordpress.org/support/users/cavalierlife/)
 * (@cavalierlife)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/make-external-request-after-saving/#post-11418094)
 * Hi, developer questions should be discussed at github [https://github.com/elementor/elementor/](https://github.com/elementor/elementor/)
   or you might be able to find some useful info at [https://developers.elementor.com/](https://developers.elementor.com/)

Viewing 1 replies (of 1 total)

The topic ‘Make external request after saving’ is closed to new replies.

 * ![](https://ps.w.org/elementor/assets/icon-256x256.gif?rev=3444228)
 * [Elementor Website Builder - more than just a page builder](https://wordpress.org/plugins/elementor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/elementor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/elementor/)
 * [Active Topics](https://wordpress.org/support/plugin/elementor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/elementor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/elementor/reviews/)

## Tags

 * [save](https://wordpress.org/support/topic-tag/save/)

 * 1 reply
 * 2 participants
 * Last reply from: [Donna Fontenot](https://wordpress.org/support/users/cavalierlife/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/make-external-request-after-saving/#post-11418094)
 * Status: resolved