Created
January 31, 2012 00:12
-
-
Save GaryJones/1707719 to your computer and use it in GitHub Desktop.
Edit Prose default options
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'prose_settings_defaults', 'custom_prose_settings_defaults' ); | |
/** | |
* Edit default Prose design settings values. | |
* | |
* These values are used when options are reset, or an invalid value is submitted. | |
* | |
* @author Gary Jones | |
* @link http://code.garyjones.co.uk/set-prose-defaults/ | |
* | |
* @see prose_settings_defaults() Contains the prose_settings_defaults filter hook. | |
* | |
* @param array $defaults Array of default values with the key as the mapping name. | |
* | |
* @return array Amended array. | |
*/ | |
function custom_prose_settings_defaults( $defaults ) { | |
$defaults['body_font_color'] = '#FFE09E'; | |
$defaults['body_font_family'] = "'Arial Black', Gadget, sans-serif"; | |
$defaults['body_font_color'] = '#111111'; | |
$defaults['body_font_size'] = '14'; | |
$defaults['body_background_color'] = '#ED43F1'; | |
return $defaults; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment