I want to do something like: want to display one plugin's page on other plugin's page.
I have read Including file or library from other pluginIncluding file or library from other plugin but its not working for me or either am doing something wrong
let say I want to use plugin-1 into plugin-2
here whats the meaning of
do_action( 'my_library_loaded', plugin_dir_path( __FILE__ ) );
plugin_dir_path( FILE ) path of which plugin (plugin-1 or plugin-2 ?) and where I have to put this? (in plugin-1 or plugin-2 ?)
same question for add_action( 'my_library_loaded', 'other_plugin_init_handler' );
any suggestion please