/** * Admin notice. * */ function presscore_admin_notice() { global $current_screen; if (optionsframework_get_options_files($current_screen->parent_base) && !apply_filters('presscore_less_cache_writable', true)) { presscore_admin_notices()->add_notice('unable-to-write-css', _x('Failed to create customization .CSS file. To improve your site performance, please check whether ".../wp-content/uploads/" folder is created, and its CHMOD is set to 777.', 'admin', 'the7mk2'), 'updated'); } }
function optionsframework_get_page_options($page_slug) { return optionsframework_load_options(optionsframework_get_options_files($page_slug)); }
/** * Wrapper for optionsframework_options() * * Allows for manipulating or setting options via 'of_options' filter * For example: * * <code> * add_filter('of_options', function($options) { * $options[] = array( * 'name' => 'Input Text Mini', * 'desc' => 'A mini text input field.', * 'id' => 'example_text_mini', * 'std' => 'Default', * 'class' => 'mini', * 'type' => 'text' * ); * * return $options; * }); * </code> * * Also allows for setting options via a return statement in the * options.php file. For example (in options.php): * * <code> * return array(...); * </code> * * @return array (by reference) */ function &_optionsframework_options() { $options = optionsframework_load_options(optionsframework_get_options_files()); // Allow setting/manipulating options via filters $options = apply_filters('of_options', $options); return $options; }