' . __( 'Social', 'wordpress-seo' ) . ''; } /** * Output the tab content */ public function tab_content() { $content = ''; foreach ( $this->get_meta_field_defs( 'social' ) as $meta_key => $meta_field ) { $content .= $this->do_meta_box( $meta_field, $meta_key ); } $this->do_tab( 'social', __( 'Social', 'wordpress-seo' ), $content ); } /** * Filter over the meta boxes to save, this function adds the Social meta boxes. * * @param array $field_defs Array of metaboxes to save. * @return array */ public function save_meta_boxes( $field_defs ) { return array_merge( $field_defs, $this->get_meta_field_defs( 'social' ) ); } /********************** DEPRECATED METHODS **********************/ /** * Define the meta boxes for the Social tab * * @deprecated 1.5.0 * @deprecated use WPSEO_Meta::get_meta_field_defs() * @see WPSEO_Meta::get_meta_field_defs() * * @param string $post_type * @return array Array containing the meta boxes */ public function get_meta_boxes( $post_type = 'post' ) { _deprecated_function( __METHOD__, 'WPSEO 1.5.0', 'WPSEO_Meta::get_meta_field_defs()' ); return $this->get_meta_field_defs( 'social' ); } } /* End of class */ } /* End of class-exists wrapper */