wpseek.com
WordPress开发者和主题制作者的搜索引擎
_wp_translate_php_url_constant_to_key is private and should not be used in themes or plugins directly.
_wp_translate_php_url_constant_to_key › WordPress Function
Since4.7.0
已弃用n/a
› _wp_translate_php_url_constant_to_key ( $constant )
访问: |
|
参数: |
|
链接: | |
返回: |
|
定义在: |
|
文档: |
Translate a PHP_URL_* constant to the named array keys PHP uses.
源码
function _wp_translate_php_url_constant_to_key( $constant ) { $translation = array( PHP_URL_SCHEME => 'scheme', PHP_URL_HOST => 'host', PHP_URL_PORT => 'port', PHP_URL_USER => 'user', PHP_URL_PASS => 'pass', PHP_URL_PATH => 'path', PHP_URL_QUERY => 'query', PHP_URL_FRAGMENT => 'fragment', ); if ( isset( $translation[ $constant ] ) ) { return $translation[ $constant ]; } else { return false; } }