/** * Begins execution of the plugin. * * Since everything within the plugin is registered via hooks, then kicking off the plugin from this point in the file does * not affect the page life cycle. * */ function run_plugin_name() { $oa_social_config = oa_social_sharing_icons_config::getInstance(); $plugin = new oa_social_sharing_icons($oa_social_config); $plugin->init(); $plugin->run(); }
/** * Initialize the class and set its properties. */ public function __construct() { $oa_social_config = oa_social_sharing_icons_config::getInstance(); parent::__construct($oa_social_config); }