admin_header( true, 'wpseo_titles' ); $tabs = new WPSEO_Option_Tabs( 'metas' ); $tabs->add_tab( new WPSEO_Option_Tab( 'general', __( 'General', 'wordpress-seo' ), array( 'video_url' => 'https://yoa.st/screencast-metas' ) ) ); $tabs->add_tab( new WPSEO_Option_Tab( 'home', __( 'Homepage', 'wordpress-seo' ), array( 'video_url' => 'https://yoa.st/screencast-metas-homepage' ) ) ); $tabs->add_tab( new WPSEO_Option_Tab( 'post-types', __( 'Post Types', 'wordpress-seo' ), array( 'video_url' => 'https://yoa.st/screencast-metas-post-types' ) ) ); $tabs->add_tab( new WPSEO_Option_Tab( 'taxonomies', __( 'Taxonomies', 'wordpress-seo' ), array( 'video_url' => 'https://yoa.st/screencast-metas-taxonomies' ) ) ); $tabs->add_tab( new WPSEO_Option_Tab( 'archives', __( 'Archives', 'wordpress-seo' ), array( 'video_url' => 'https://yoa.st/screencast-metas-archives' ) ) ); $tabs->add_tab( new WPSEO_Option_Tab( 'other', __( 'Other', 'wordpress-seo' ), array( 'video_url' => 'https://yoa.st/screencast-metas-other' ) ) ); $tabs->display( $yform, $options ); $yform->admin_footer(); /** * Add help tabs * * @param array $tabs Current help center tabs. * * @return array */ function yoast_add_meta_options_help_center_tabs( $tabs ) { $tabs[] = new WPSEO_Help_Center_Item( 'basic-help', __( 'Template explanation', 'wordpress-seo' ), array( 'content' => "\n\t\t

" . __( 'Template explanation', 'wordpress-seo' ) . "

\n\t\t" . '

' .'

' . sprintf( /* translators: %1$s expands to Yoast SEO. */ __( 'The title & metas settings for %1$s are made up of variables that are replaced by specific values from the page when the page is displayed. The tabs on the left explain the available variables.', 'wordpress-seo' ), 'Yoast SEO' ) . '

' . '

' . __( 'Note that not all variables can be used in every template.', 'wordpress-seo' ) . '

', ) ); $tabs[] = new WPSEO_Help_Center_Item( 'title-vars', __( 'Basic Variables', 'wordpress-seo' ), array( 'content' => '

' . __( 'Basic Variables', 'wordpress-seo' ) . '

' . WPSEO_Replace_Vars::get_basic_help_texts(), ) ); $tabs[] = new WPSEO_Help_Center_Item( 'title-vars-advanced', __( 'Advanced Variables', 'wordpress-seo' ), array( 'content' => '

' . __( 'Advanced Variables', 'wordpress-seo' ) . '

' . WPSEO_Replace_Vars::get_advanced_help_texts(), ) ); return $tabs; }