id : null ); if( $screen_id == 'adplugg_page_adplugg_facebook_settings' ) { //Show notice if fb-instant-articles plugin isn't found. if ( ! defined( 'INSTANT_ARTICLES_SLUG' ) ) { $fb_instant_articles_not_found_notice = AdPlugg_Notice::create( 'notify_fb_instant_articles_not_found', 'Facebook Instant Articles for WP plugin not found.', 'error' ); $fb_instant_articles_not_found_notice->render(); } } } /** * Function to initialize the AdPlugg Facebook Options page. */ public function admin_init() { register_setting( 'adplugg_facebook_options', ADPLUGG_FACEBOOK_OPTIONS_NAME, array( &$this, 'validate' ) ); add_settings_section( 'adplugg_facebook_instant_articles_section', 'Facebook Instant Articles', array( &$this,'render_facebook_instant_articles_section_text' ), 'adplugg_facebook_instant_articles_settings' ); add_settings_field( 'ia_enable_automatic_placement', 'Automatic Placement', array( &$this, 'render_ia_enable_automatic_placement_field' ), 'adplugg_facebook_instant_articles_settings', 'adplugg_facebook_instant_articles_section' ); } /** * Function to render the AdPlugg Facebook options page. */ public function render_page() { ?>
To have AdPlugg ads automatically inserted into your Facebook Instant Articles feed, do the following:
See the help above for more info.