wp_create_nonce is a pluggable function loaded after plugins are loaded.
Be sure to call your class method on proper hook, 'init' (or later) is a good place: once your function output something (a form) there is no reason to run earlier than that.
Related Posts:
- Where should my plugin POST to?
- When is it useful to use wp_verify_nonce
- wp_verify_nonce fails always
- What are the common security flaws I need to look for? [closed]
- WordPress Capabilities: edit_user vs edit_users
- Plugin development: how to create a form and get custom data?
- Security error WP 4.0 + WP phpBB Bridge [closed]
- Should I use RIPS tool to test my themes and plugins?
- shortcode doesn’t work
- Admin page: form with enctype=”multipart/form-data” does not transfer its data
- Security checking in meta_box save is reluctant?
- Escape when echoed
- How to trigger $_GET request within admin plugin page?
- Custom form action to handle data inside a plugin
- New User Form – Custom Menu Page
- Using a custom plugin to capture input data via Ajax and PHP
- Nonce failing on form submission
- Checkbox conflict in my custom plugin admin page
- I should enable automatic updates?
- Prevent direct access to WordPress plugin assets?
- Submit Form data to another page via Ajax (WordPress Way)
- How to prevent plugins from sniffing/stealing other plugins’ options?
- How to add a WordPress Nonce for this form to avoid CSRF
- Select Form Element Not Saving from Plugin Options
- How to append new form elements in “Add New” form of Users in WordPress admin panel?
- Security of a WordPress Plugin
- User loggedin as Subscriber form not sending
- Help to Create a Simple Plugin to make a post
- Content-Security-Policy implementation with WordPress W3Total Cache plugin installed
- Securing a plugin pop-up window
- submit form data to wordpress existing database table using my plugin
- WP_Filesystem usage within a block of code
- How can i see/log all requests coming from a registration form (not from the UI)?
- Validating values using Settings API?
- Linking Plugin Files to WP
- Create plugin with form in post and submit it to specific form
- Capturing POST data
- Creating fields in the database
- Undefined variable _POST
- Display file contents within Plugin
- Is Nonce Verification (CSRF) required for WordPress Custom Bulk User Actions?
- WordPress.Security.NonceVerification.Recommended
- Trying to Find the PHP File/Function that Handles a Specific Form Action URL
- How to verify/test that a custom built wordpress theme is as secure as possible?
- Count posts by type including drafts and pending posts
- How to allow user to select User ID in Formidable Pro form? [closed]
- List the authors that have written posts in a category
- Is Timthumb still broken? What security measures should be taken?
- My custom plugin did not create db tables in database
- Detailed form plugin, with ability to export to excel etc. OR edit PDF live? [closed]
- Custom post types – remove default post supports through empty array?
- WordPress Multisite: Programmatically Activate / Deactivate a Plugin of a Specific Blog
- How to be escape Variables and options when echo?
- What is the WordPress approach to custom data?
- WordPress Fatal Errors [closed]
- YOAST Seo xmlsitemap menu item not showing in the dashboard [closed]
- Sell access to form [closed]
- Possible?? Pull Plugin Property Data to a Theme’s Custom Post Type
- Using meta_query in a WP_Query not working for numbers properly
- How to rewrite URL and get the values?
- Disable plugin visibility at the plugin directory
- Plugin is creating posts twice
- How do I reliably find a URL to a script or other file?
- How to add captcha to publish widget
- How to add logo to a WordPress Custom Plugin?
- Use a custom block in another block
- How to overwrite the category template in a plugin
- Fixed: Console.log twice in the edit function
- Using OR Condition with facetwp facets
- How to copy the all WordPress media items to another custom plugin folder?
- show wc_add notices on particular page in woo commerce custom plugin development
- Error on plugin activation and creating new page
- Child theme modifications not showing up
- Custom Formdata matching with user table
- “Fire Secure” menu item
- https rewrite not working for All in one security Brute force > rename login url
- Function settings_fields() not recognized (Uncaught Error: Call to undefined function settings_fields())
- Why my multisite is this slow? (stats inside)
- what’s different between wpdb->prefix and table_prefix
- Can we rename a plugin directory for a already launched plugin?
- How to use custom footer template in a site-plugin?
- Problem with conditional woocommerce custom checkout field
- trying to create simple plugin to filter categories from all authors
- How to create a new database table whenever user changes options
- Am I correctly adding styles to plugin?
- Proper Failure of Plugin Activation
- Why function hooked using object are executing at all time?
- What is the Object for WP_Error Class?
- How can I add the custom taxonomy categories to the posts and pages?
- Ajax in Plugins: returns the whole page
- How to create a page template using custom plugin
- WordPress 3,5 and Jquery version
- how to search through plugin in wordpress cimy-user-extra-fields?
- Any way to hook into WP after a page displays?
- Function not being called on form submit, only blank admin-post.php page
- How to give specific class name to category in wordpress with code snippets
- i need to resive data external api and show user
- BBPress Customization with Custom Plugin
- How can we extent core/group or cover block?
- Custom Gutenberg blocks not showing in WP editor