Browsing Tag


How to include WP_Widget from another file in main plugin file?

I tried to use the code bellow in my main file: define( 'MYPLUGINNAME_PATH', plugin_dir_path(__FILE__) ); include MYPLUGINNAME_PATH . 'class/class-widget.php'; Then I have a file class/class-widget.php

How to Include WP_Widget class in main plugin file

If I have a class xxxx_widget extends WP_Widget inside a php file, how can I include that file from the main file inside my plugin.

Back to Top 134569 wordpress questions, 32 Wordpress answers.
Wordpress related, All rights reserved
Powered by Creative Advertising