Load content From Include File within plugin
A better solution might be to do it along the lines of /* In your main plugin file */ if ( ! defined( ‘YOUR_PLUGIN_ABSPATH’ ) ) { define( ‘YOUR_PLUGIN_ABSPATH’, dirname( __FILE__ ) ); } /* In any file of the plugin */ if( is_front_page() ) { /* adjust path if file.php is in a subfolder … Read more