I have a page with text and images, which I want to change (edit text, delete images) dynamically and transfer the page content to another php file via a variable.
My problem: When I delete text and images, the content shown in the php file is just the original content with all text and images. Seems like it gets reloaded during the transfer. How can I solve this, that the content is saved with the changes?
Here is how I get the url and how I give the variable to the other php file:
<?php
global $wp;
$current_url = add_query_arg( $wp->query_string, '', home_url( $wp->request ) );
// this will store the current page url in a variable (its from wordpress)
?>
The link to send the data:
<a href="http://example.com/create.php?pdf='.$current_url.'">Send</a>
And here the php file:
<?php
$output = $_GET['pdf'];
$showcontent = file_get_contents($output);
echo $showcontent ;
?>