WPSEO_OpenGraph::og_tag() public Yoast 1.0
Устарела с версии 14.0. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.╳
Internal function to output FB tags. This also adds an output filter to each bit of output based on the property.
{} Это метод класса: WPSEO_OpenGraph{}
Хуки из метода
Возвращает
true/false
. Null. Ничего.
Использование
$WPSEO_OpenGraph = new WPSEO_OpenGraph(); $WPSEO_OpenGraph->og_tag( $property, $content );
- $property(строка) (обязательный)
- Property attribute value.
- $content(строка) (обязательный)
- Content attribute value.
Список изменений
Устарела с | 14.0 |
Код WPSEO_OpenGraph::og_tag() WPSEO OpenGraph::og tag Yoast 16.1.1
public function og_tag( $property, $content ) {
_deprecated_function( __METHOD__, 'WPSEO 14.0' );
/**
* Filter: 'wpseo_og_' . $og_property - Allow developers to change the content of specific OG meta tags.
*
* @deprecated 14.0
*
* @api string $content The content of the property.
*/
$content = apply_filters_deprecated( 'wpseo_og_' . $og_property, $content, 'WPSEO 14.0' );
return true;
}