id : null ); if ( 'adplugg_page_adplugg_facebook_settings' === $screen_id ) { // 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' ); // This is a temp field to facilitate a judicious rollout of the new // adplugg.io endpoint its use may have been allowed on upgrade. If it // was, show the field. if ( AdPlugg_Facebook::temp_allow_legacy_adplugg_com_endpoint() ) { add_settings_field( 'temp_use_legacy_adplugg_com_endpoint', 'Legacy Endpoint', array( &$this, 'render_temp_use_legacy_adplugg_com_endpoint_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.