How can I add a reset button when using the Settings API?
我有这样的东西来存储我的默认值:
$slider_options = get_option( \'nextslider_options\' );
/* Define the array of defaults */
$defaults = array(
\'width\' => 0,
\'height\' => 0,
\'effect\' => \'fade\',
\'bullets\' => 0,
\'arrows\' => 0,
\'slidelength\' => 4000,
\'animationlength\' => 600
);
$slider_options = wp_parse_args( $slider_options, $defaults );
作为样板,我使用了
Settings Sandbox.