Inpsyde\MultilingualPress\Relations\Post\RelationshipController::handle_connect_new_post PHP Method

handle_connect_new_post() public method

Connects the current post with a new remote one.
Since: 3.0.0
public handle_connect_new_post ( ) : void
return void
    public function handle_connect_new_post()
    {
        if ($this->connect_new_post()) {
            wp_send_json_success();
        }
        wp_send_json_error($this->last_error);
    }