I figured out what I needed to do. I needed
if(isset( $_POST[ 'tdgmt_plugin_noncename']) && wp_verify_nonce( $_POST['tdgmt_plugin_noncename'], plugins_url( __FILE__))){
to be above
if($screen->base == 'settings_page_tgdmt_options_page'){
as well as fixing my typos of
tdgmt_plugin_noncename
instead of
tgdmt_plugin_noncename
Related Posts:
- Do I require the use of nonce?
- WP nonce invalid
- WooCommerce/WordPress: how hide entire table form after submit (Admin Dashboard)?
- Form Security: nonce vs. jQuery
- WordPress shortcode returns the data before
- Using admin-post.php for admin form but it directs me to admin-post.php white screen
- Adding Additional Variables on Menus Page
- Reliable way to add nonce to HTTP Header in WordPress?
- Store user form submitted information in post type
- not able to access $_POST on backend profile update
- Custom Plugin Develoment, Form Action
- Nonce fail after second submit attempt
- Trouble using wordpress functions in a pop-up modal form
- Validate a custom form with js and php
- Plugin CSS not enqueing
- Create onClick Event to Re-load a Widget
- Swapping wp_dropdown_categories function with wp_category_checklist
- Accessing the database from a plugin outside of action hooks
- Adding subdomain to home_url for “add_menu_page”
- How to show phpinfo() only in a new tab?
- How to find error in my code when the error message is pointing to WP core file?
- How to create a form and display its content as table in admin panel?
- How to select the contents in the text view textrea in wp_editor?
- Custom Form Processing Issue
- My form action url is being prepended with a directory that does not exists
- wp_create_nonce function doesn’t work inside a plugin?
- How to access global variable $menu inside a class function
- Custom profile field with birthday. Troubles with
- How can I reuse the code to capture a param in a URL and place in a value in a hidden form?
- Hide categories that are not used in the post type
- Automated Cart Update With Alert Box Each Time
- How can I remove a function that has been added to wordpress with add_filter?
- PHP Fatal error: Uncaught mysqli_sql_exception: Table doesn’t exist in wordpress/wp-includes/wp-db.php
- How to store data from multiple forms using ajax and php
- Using a custom plugin to capture input data via Ajax and PHP
- How to sanitize any integer input field in wordpress?
- How to use $query->set with post__in?
- How to set up VS Code for WP plugin/theme development in 2021? [closed]
- WordPress ajax doesn’t display object method on jQuery .change() function
- Ajax loaded form replaces form action with Ajax url
- Custom user login page by creating a plugin
- prevent default not stopping page refresh. Passing form information to and from php with ajax in a wordpress site
- Singelton class does not work, multiple initialization on page reload
- Saving an array of dynamic repeater data as post_meta
- How to limit the number of forgot password reset attempts in WordPress?
- what is the best practice to add new field to an api route
- filter default query to show just selected level of child pages in wordpress
- Custom search results page not working with empty search
- Modify HTML structure of fields in woocommerce checkout form
- Retrieve $_POST data submitted from external URL in WordPress(NOT API)
- WordPress wpform plugin submit and get multiple checked value from checkbox [closed]
- How to upload a file to a folder named after the user_id via plugin
- Reprinting tags with all attributes
- Use custom post type for a store locator
- developing a wordpress plugin, have a few PHP Woocommerce related coding questions
- Improve page speed loading using CDN and async or defer attribute
- How do I programmatically set a user as spam in BuddyPress? [closed]
- Why ajax doesn’t work on certain wordpress hooks and reload the page instead?
- Why ajax doesn’t work on certain wordpress hooks?
- How to use $_GET function WordPress backend
- Whitelisting items from custom options page
- Add_menu_page not displaying the menu in class based plugin
- How to call plugin function per site in a multisite?
- Update results, Before deleting the related category [closed]
- How to make my custom widget appear within WordPress widgets? Plugin development
- Script to browser problem PHP
- adjust section according to country?
- How to auto fetch customer details in Woocommerce in checkout page
- Can’t upload image using media_sideload_image
- Store a default value for a transient on plugin activation
- Are nonces in WP REST API optional by default?
- Adding widgets to my plugin page instead of WordPress dashboard
- WP CRON duplicate wp_insert_post with has < and > tag
- How wp-cron can run in background if PHP is single threaded?
- How to insert data into database using wp cron job
- How to send Ajax request from my plugin in admin dashboard?
- I want to add custom add to cart link [closed]
- Post + form + action + results on the same page
- Options API get_option() and update_option() Not Correctly Updating or Returning
- Ajax call return 404
- Execute long and heavy processes
- How to pre populate a form field with a link of a current user’s author profile?
- wp_head function not outputting
- wp query foreach deleting record returning only first or last item
- Why Won’t My Inputs in a form with a Get method work together?
- Extend PHP regex to cover “srcset” and “style” attributes
- Input data from email form not going to JSON file
- How to get the value of input hidden html from text editor to custom page template?
- Adding function to Genesis genesis_header [closed]
- AJAX success response is not working but it’s saving my changes
- Access Child Class of Plugin Main Class Instance
- PHP > Scheduled Tasks > Sending daily email with dynamic API variables
- Show success or error messages in Ajax response to WordPress custom registration form
- How to make own crop image function for WordPress plugin
- Styling my own password protected page, how to deal with wrong password?
- Contact form won’t submit
- wp_mail file attachment not being placed in upload folder?
- WordPress Custom field Colors
- Search Query: how to construct a search string from two select elements?
- Best practice for show data to one specific user?