Default Plugin Settings
-
Hi,
I’m using meteor slides in a multisite setup.
I need to set default image size settings, as users wont have to change the size for the theme I created for this purpose.I was hoping I can override the settings in my themes’ functions.php and adding this somehow:
function meteorslides_default_options() { $meteor_temp = get_option( 'meteorslides_options' ); if ( ( $meteor_temp['slideshow_quantity']=='' )||( !is_array( $meteor_temp ) ) ) { $meteor_defaults_args = array( 'slideshow_quantity' => '5', 'slide_height' => '200', 'slide_width' => '940', 'transition_style' => 'fade', 'transition_speed' => '2', 'slide_duration' => '5', 'slideshow_navigation' => 'navnone' ); update_option( 'meteorslides_options', $meteor_defaults_args ); } }
- The topic ‘Default Plugin Settings’ is closed to new replies.