Last active
August 29, 2015 14:16
-
-
Save webmasterninjay/b286fa2bc8a7dc7889ee to your computer and use it in GitHub Desktop.
Add default value for widget field
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 | |
// Form function | |
$default = array( 'recent_post_count' => '2' ); | |
$instance = wp_parse_args( (array) $instance, $default ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment