Yoast\WP\SEO\Surfaces
Open_Graph_Helpers_Surface::get_helper_class
Get the class name from a helper slug
Метод класса: Open_Graph_Helpers_Surface{}
Хуков нет.
Возвращает
Строку
.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_helper_class( $helper );
- $helper(строка) (обязательный)
- The name of the helper.
Код Open_Graph_Helpers_Surface::get_helper_class() Open Graph Helpers Surface::get helper class Yoast 25.3.1
protected function get_helper_class( $helper ) { $helper = \implode( '_', \array_map( 'ucfirst', \explode( '_', $helper ) ) ); return "Yoast\WP\SEO\Helpers\Open_Graph\\{$helper}_Helper"; }