'' . __('Settings', 'ampforwp') . '');
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
if ( is_plugin_active( 'amp/amp.php' ) ) {
//if parent plugin is activated
$actions = array_merge( $actions, $settings );
} else{
if(is_plugin_active( 'amp/amp.php' )){
$actions = array_merge( $actions, $settings );
}else{
$please_activate_parent_plugin = array('Please Activate Parent plugin' => '' . __('Please Activate Parent plugin', 'ampforwp') . '');
$actions = array_merge( $please_activate_parent_plugin,$actions );
}
}
}
return $actions;
}
}
} // is_admin() closing
if ( ! class_exists( 'Ampforwp_Init', false ) ) {
class Ampforwp_Init {
public function __construct(){
// Load Files required for the plugin to run
require AMPFORWP_PLUGIN_DIR .'/includes/includes.php';
require AMPFORWP_PLUGIN_DIR .'/classes/class-init.php';
new Ampforwp_Loader;
}
}
}
/*
* Start the plugin.
* Gentlemen start your engines
*/
function ampforwp_plugin_init() {
if ( defined( 'AMP__FILE__' ) && defined('AMPFORWP_PLUGIN_DIR') ) {
new Ampforwp_Init;
}
}
add_action('init','ampforwp_plugin_init',9);