Yoast\WP\SEO\Abilities\Domain
Global_Setting_Target_Interface::format_option_name
Turns the option pattern a field uses for this target into the name of the option, for targets whose options depend on more than the target itself, like the post type of a content type archive.
Метод класса: Global_Setting_Target_Interface{}
Хуков нет.
Возвращает
string. The option name.
Использование
$Global_Setting_Target_Interface = new Global_Setting_Target_Interface(); $Global_Setting_Target_Interface->format_option_name( $option_pattern ): string;
- $option_pattern(строка) (обязательный)
- The option pattern, like
title-ptarchive-%s.
Код Global_Setting_Target_Interface::format_option_name() Global Setting Target Interface::format option name Yoast 28.9
public function format_option_name( string $option_pattern ): string;