I have created a custom plugin. After activation it creating page but i am not getting how to add another php file at page content?
I would approach this in different way. In this original index.php file, keep it simple, like this: if ( ! defined( ‘ABSPATH’ ) ) { exit; } if ( ! class_exists( ‘My_Plugin’ ) ) { require_once __DIR__ . ‘/includes/class-my-plugin.php’; $my_plugin = My_Plugin::get_instance(); } In this new file you create class: class My_Plugin { protected static … Read more