WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Самая быстрая Тема-конструктор для WordPress
функция не описана

WPSEO_Configuration_Storage::add_default_fields() public Yoast 1.0

Add default fields.

{} Это метод класса: WPSEO_Configuration_Storage{}

Хуков нет.

Возвращает

Null. Ничего.

Использование

$WPSEO_Configuration_Storage = new WPSEO_Configuration_Storage();
$WPSEO_Configuration_Storage->add_default_fields();

Код WPSEO_Configuration_Storage::add_default_fields() Yoast 15.2

<?php
public function add_default_fields() {
	$fields = [
		new WPSEO_Config_Field_Success_Message(),
		new WPSEO_Config_Field_Mailchimp_Signup(),
		new WPSEO_Config_Field_Environment(),
		new WPSEO_Config_Field_Site_Type(),
		new WPSEO_Config_Field_Multiple_Authors(),
		new WPSEO_Config_Field_Title_Intro(),
		new WPSEO_Config_Field_Site_Name(),
		new WPSEO_Config_Field_Separator(),
		new WPSEO_Config_Field_Profile_URL_Facebook(),
		new WPSEO_Config_Field_Profile_URL_Twitter(),
		new WPSEO_Config_Field_Profile_URL_Instagram(),
		new WPSEO_Config_Field_Profile_URL_LinkedIn(),
		new WPSEO_Config_Field_Profile_URL_MySpace(),
		new WPSEO_Config_Field_Profile_URL_Pinterest(),
		new WPSEO_Config_Field_Profile_URL_YouTube(),
		new WPSEO_Config_Field_Profile_URL_Wikipedia(),
		new WPSEO_Config_Field_Company_Or_Person(),
		new WPSEO_Config_Field_Company_Info_Missing(),
		new WPSEO_Config_Field_Company_Name(),
		new WPSEO_Config_Field_Company_Logo(),
		new WPSEO_Config_Field_Person(),
		new WPSEO_Config_Field_Post_Type_Visibility(),
		new WPSEO_Config_Field_Tracking_Intro(),
		new WPSEO_Config_Field_Tracking(),
	];

	$post_type_factory = new WPSEO_Config_Factory_Post_Type();
	$fields            = array_merge( $fields, $post_type_factory->get_fields() );

	foreach ( $fields as $field ) {
		$this->add_field( $field );
	}
}