1
2
3
4
5
6
7
| function translate($text, $domain = 'default') {
if (!is_admin()) {
return $text;
}
...
}
|
1
2
3
4
| function translate_with_gettext_context($text, $context, $domain = 'default') {
if (!is_admin()) {return $text;}
...
}
|
1
2
3
4
5
6
7
8
9
10
11
| function get_option($option, $default = false) {
// var_dump($option);
global $cache_option;
if (isset($cache_option[$option])) {
return $cache_option[$option];
}
...
$v = apply_filters("option_{$option}", maybe_unserialize($value), $option);
$cache_option[$option] = $v;
return $v;
}
|
1
2
3
4
| function wp_default_scripts($scripts) {
if (!is_admin()) {return;}
...
}
|
1
2
3
4
| function register_block_type_from_metadata($file_or_folder, $args = array()) {
if (!is_admin()) {return;}
...
}
|
1
2
3
4
| function get_posts()) {
if (!is_admin()) {return;}
...
}
|