function hocwp_setup_theme_excerpt_length()
{
    $options = hocwp_option_reading();
    $excerpt_length = hocwp_get_value_by_key($options, 'excerpt_length');
    if (!hocwp_is_positive_number($excerpt_length)) {
        $excerpt_length = 75;
    }
    return $excerpt_length;
}
Пример #2
0
function hocwp_theme_load_init_action()
{
    global $hocwp_reading_options;
    $hocwp_reading_options = hocwp_option_reading();
}
Пример #3
0
function hocwp_theme_get_reading_options($key)
{
    global $hocwp_reading_options;
    if (empty($hocwp_reading_options)) {
        $hocwp_reading_options = hocwp_option_reading();
    }
    $result = hocwp_get_value_by_key($hocwp_reading_options, $key);
    return $result;
}