WPSEO_Import_WPSEO::delete_taxonomy_metas()privateYoast 1.0

Deletes the wpSEO taxonomy meta data.

Метод класса: WPSEO_Import_WPSEO{}

Хуков нет.

Возвращает

null. Ничего (null).

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

// private - только в коде основоного (родительского) класса
$result = $this->delete_taxonomy_metas( $taxonomy, $term_id );
$taxonomy(строка) (обязательный)
String with the name of the taxonomy.
$term_id(строка) (обязательный)
The ID of the current term.

Код WPSEO_Import_WPSEO::delete_taxonomy_metas() Yoast 22.4

private function delete_taxonomy_metas( $taxonomy, $term_id ) {
	delete_option( 'wpseo_' . $taxonomy . '_' . $term_id );
	delete_option( 'wpseo_' . $taxonomy . '_' . $term_id . '_robots' );
}