Sorry for this question,
I founded the solution, now I know that i’m a dummy.
if($_GET['action'] == 'edit')
for everyone has my same drama.
(the question remains open for better suggestions about doing that, in the best and most secure way)
Tank you for any suggestion.
Related Posts:
- How to fix ‘Notice: Undefined index:’ in PHP form action
- what is correct way to hook when update post
- How to stop form resubmission on page refresh
- Using register_activation_hook in classes
- Javascript / PHP – closing the loop
- Help hooking into user_register
- add_filter() inside another add_filter()
- How do I stop my form from adding code to current page URL instead of re-directing. Been stuck for days
- Updating the database after parsing CSV document
- Hook into all password resets in WordPress and get password before hashing?
- custom search query database in child theme
- Creating a WordPress addon for ContactForm7 submission (.XML file export)
- Using transients to store form notifications
- Insert data from form to database
- not able to access $_POST on backend profile update
- Getting page / post URL on publish and / or update
- Creating wordpress user registration form
- Add class to all meta boxes for a custom post type
- Fatal error when using array_diff() function inside of wp_update_nav_menu hook?
- Custom Plugin Develoment, Form Action
- wordpress form action page not found
- Why transition_post_type hook is called twice for the same post?
- Adding action item to admin users table and sending email
- Trouble with checked() for array of multiple checkboxes
- If input field has value Require another field – PHP
- Clone the “proceed to cart” button and place it above checkout on the cart page, but only appear display size is 320px
- Custom HTML form using PHP – help with ajax/username validation
- Form direction to .php on localhost
- How can I move the posted-on date above the post and below the entry-header?
- Form not working as it should in WordPress, but in a normal HTML site it does
- Submitting my form to the database and then redirecting to payment site
- Processing forms with php to wordpress database
- Ajax call URL 404’ing when pushed to staging server
- Update only some custom user fields
- Post from front end form to post_meta
- Passed variable gets undefined variable error on insert on next page
- Accessing values entered via form – try again
- Nonce fail after second submit attempt
- How to set up an auto delete post?
- Post formating on Home page
- Dynamic form variables for post meta
- Trying to display user meta by “name” – not by “ID”
- Styling admin page rows in order of importance (checkboxes)
- WordPress HTML Helper
- calling a function from a class in your template
- Headers for Contact Form are wrong
- Display default WordPress login/registration form into a modal window
- Using Nonce for my Form
- Trouble using wordpress functions in a pop-up modal form
- Force string into signup form
- custom contact form no longer working (because of 3.2?)
- How to add custom checkout field in user details mail template
- Data inserted in database, but ajax calls error function
- upload images on front by user using form
- Correct Syntax for uploading files to custom directory in WordPress
- ajax form function error
- How to pass username into form that sends data to database
- HOW TO Insert Existing PHP Code to WOrdPress
- Cannot modify header information – headers already sent
- Send foreach $_post method to contact form 7 [closed]
- For each loop will not append to the_content hook
- Change Checkout “Place Order” text if cart has a specific product
- php inside HTML via shortcode? [closed]
- Send a custom notification to customer on WooCommerce cancelled order status
- Where to put include php file?
- Assign new post author IF another user in custom field on post transition
- Use HTML Form Data in PHP Function – WordPress Admin Page
- Create and publish a new post every Monday, listing the post titles and links to the posts published during the previous week
- Contact form with dynamic dropdown and filter
- Redirect loop upon installation of my plugin
- understanding wp_next_scheduled
- Field validation strlen works in php7.4 fails 8.1 [closed]
- Custom form that stores data in mysql database
- Embed PHP script into WP – what is the best way
- Add/alter image attribute before render
- transition_post_status hook, works – but not if the post is new
- php was updated – critical error [closed]
- Preventing script injections in HTML form
- Guests comment form – prevent duplicate email addresses
- Facing Problem While Running WordPress Hook For Archive, Categories, Author, Date Pages Only
- Woocommerce – add tracking code to another email template
- Putting form result in my database
- Bulk data save in custom table
- Is there a hook that I can use when a fatal error occurs?
- Can’t insert into a database wordpress
- Is there a way to pull remotely generated XML, process it, and display it on a Managed WordPress page?
- how to append ACF field data using one of the following filter/ hooks
- Help with commenting system
- Display endpoint’s return into a file (file_put_contents())
- How to create a form that display license key (and email it to user) after the user enter their email and 10 digit code?
- Quiz page template, checked attribute missing when option selected
- Send summary email from a form with wp_mail
- Validate a custom form with js and php
- Custom filter not affecting gtag script position in WordPress footer
- Responsive images, per image type?
- Add Imports to Existing WordPress Import Map
- Automatically populating a date parameter within a shortcode
- Custom PHP contact form issue
- Trouble getting wpdb to work – first time
- How can I process a form submission from an HTTP POST request?