wpseo_import_external_select()
Creates a select box given a name and plugins array.
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
wpseo_import_external_select( $name, $plugins );
- $name(строка) (обязательный)
- Name field for the select field.
- $plugins(массив) (обязательный)
- An array of plugins and classes.
Код wpseo_import_external_select() wpseo import external select Yoast 24.7
function wpseo_import_external_select( $name, $plugins ) { esc_html_e( 'Plugin: ', 'wordpress-seo' ); echo '<select name="', esc_attr( $name ), '">'; foreach ( $plugins as $class => $plugin ) { /* translators: %s is replaced with the name of the plugin we're importing from. */ echo '<option value="' . esc_attr( $class ) . '">' . esc_html( $plugin ) . '</option>'; } echo '</select>'; }