I’ve solved the issue, it was because I called the class before creating it
require_once ( dirname( __FILE__ ) . '/sections/contact.php' );
require_once ( dirname( __FILE__ ) . '/controls/contact-form.php' );
Related Posts:
- Hide Theme options and Customize Admin menu
- How to integrate plugin in WordPress theme
- How to embed HTML code from WP Coder plugin (or other) into Main Index Template of the theme
- How to add a default value to get_option if it’s used as a variable?
- How to Display a Plugin function (content) on frontpage using index.php
- Plugin options page with live preview?
- WordPress plugin admin html being shown in Customizer iframe
- remove add new post, if there is already one post
- How to customize this theme? [closed]
- Overwrite add_image_size defined by theme
- WordPress API functions not working at AJAX functions.php call
- What’s the right way to implement functions in footer.php
- require_once not working in plugin wordpress
- Elementor Sidebar not loading when PRO elements plugin is active
- dokan edit functionality
- when i activate my WordPress plugin cannot see customizer options or preview
- WordPress appearance button
- WordPress panel is not loading after plugin activated with error: HTTP ERROR 500
- how to add navigation icons in specific template?
- Customizer preview URL not updating when settings reset to default
- How to add separator between default and custom panels in WordPress customizer?
- How to copy data from user profile page (profile.php) to theme customizer
- disable lightbox in a plugin [closed]
- How can I convert a complete bootstrap template into a WordPress template? [closed]
- Real estate schema markup not showing up on Rich Results test
- Issue with customizer and widget page
- How to create an Info Box on WordPress [closed]
- I want create woocommerec match products columns
- WordPress Plugin Development In MVC Architecture, How?
- What happens when two plugins have the same 3rd party class included into them?
- Update Multiple Post Meta for the Same Post In One call?
- Allowing Custom Capability to Manage Plugin Options
- Create custom column in post table in wordpress
- The plugin generated x characters of unexpected output, $wpdb not defined
- Admin page: form with enctype=”multipart/form-data” does not transfer its data
- Trigger renewal order emails for WooCommerce subscriptions for testing
- How Can I Pass the Shortcode’s $atts Variable to the Plugin’s Javascript Function
- Reset WordPress website
- WordPress Ajax Callback
- Portfolio + Blog: multisite or plugin?
- Building a store locator with google maps
- Runng Cron Job for Plugin With No CronTab Access
- Creating a social media score plugin
- Form isn’t inserting data into database with ajax plugin
- All of my custom posttypes are 404’ing
- WordPress: PHP code rendering in the wrong place
- New to wordpress, Question about editing PHP
- ‘No Results Found’ on single post for custom post type
- Exporting post content from wordpress using WP All Export and wpautop() php function to include paragraph tags
- How to create an input field, and base the output on spreadsheet data? [closed]
- Blacklist IP After Using WordPress Plugin Detector?
- posts comments goes to trash
- Admin style for just one plugin in dashboard
- Trouble adding tiny mce to textarea in custom plugin
- Js file is not adding using this code in functions.php
- Trying to create a table/list of my EventBrite course listings [closed]
- Privileges problem with add_submenu_page [closed]
- WP_Http response throws “Cannot use object of type WP_Error as array”
- Modify wp_installed_email / wp_new_blog_notification
- Using Variable in WordPress Translate Functions
- Plugin getting Cannot modify header information errors
- Adding inside wp-plugin jQuery script that receives JSON-formatted data, generated by php-function inside this plugin
- iframe not showing in post (with “allow php in posts” plugin activated)
- License validate function
- Plugin for an interactive image? [closed]
- Multiple authors and readers restricted by role [closed]
- CSS reset for plugin’s front end?
- Display my plugins content based on a pages post_id
- How can I get someone to checkout as soon as they add a product to cart?
- Displaying syntax highlighted code [closed]
- save data from metabox does not work
- Share buttons Facebook Twitter, just like wordpress.com without webservice
- Restrict posts to customers with complete WooCommerce orders only
- WordPress not showing manually uploaded files in Uploads folder on Media Library
- Use get_pages() before another plugin modifies it
- How can I adjust my function so the page editor still loads in the backend?
- WordPress plugin blog creation
- Preserving existing functionality converting HTML to WordPress
- FTP access to NAS drive files/folders from WordPress site
- Change Jobs for WordPress templates
- Issue calling my functions on Plugin activate in WordPress
- WPGlobus Multilingual – REST API
- Restoring a WordPress site
- Custom SportsPress list
- Wordress admin page is fetching error You do not have sufficient permissions to access this page.
- Which WordPress version to use for improved plugin compatibility? [closed]
- WP_Filesystem usage within a block of code
- Convert HTML5/CSS3 site to WordPress Theme (need a lot of plugins) or just use the API?
- Extending the “Add Media”-Dialog … how do I finally insert something to the Post?
- How can I retrieve data within my widget
- How do I make the selected layout display for all MarketPress pages?
- What tool are available in the wordpress API for debugging a plugin?
- In my plugin when i call select page is blank
- Including a PHP file via a function that is part of a plugin?
- Twitter List Tweets and Delicious Links as Posts
- Integrate Razorpay quick payments plugin with contact form7 plugin
- Trying to disable all notifications except for one on woocommerce checkout page with css [closed]
- How I can hide my wp folders from Inspect Element (Developer Tools)
- Warning: Undefined variable $admin
- plugin translation *.mo file not getting loaded for custom post