'Facebook Instant Articles Ads', 'id' => 'facebook_ia_header_ads', 'description' => 'Drag the AdPlugg Widget here to have AdPlugg Ads automatically included in your Facebook Instant Articles.', ) ); } } /** * Function that looks to see if an adplugg access code has been installed. * @return boolean Returns true if an facebook instant articles automatic ad * placement is enabled, otherwise returns false. */ static function is_ia_automatic_placement_enabled() { $options = get_option( ADPLUGG_FACEBOOK_OPTIONS_NAME, array() ); $enabled = false; if( ! empty( $options['ia_enable_automatic_placement'] ) ) { $enabled = ($options['ia_enable_automatic_placement'] == 1) ? true : false; } return $enabled; } /* * Singleton instance */ public static function get_instance() { if ( ! isset( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } }