cptbc_set_options

The CPT Bootstrap Carousel cptbc set options function.

Description

cptbc_set_options(); 

Usage

  1. if ( !function_exists( 'cptbc_set_options' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'cpt-bootstrap-carousel/cptbc-settings.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = cptbc_set_options(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/cptbc-settings.php  
  1. function cptbc_set_options () { 
  2. $defaults = array( 
  3. 'interval' => '5000',  
  4. 'showcaption' => 'true',  
  5. 'showcontrols' => 'true',  
  6. 'customprev' => '',  
  7. 'customnext' => '',  
  8. 'orderby' => 'menu_order',  
  9. 'order' => 'ASC',  
  10. 'category' => '',  
  11. 'before_title' => '<h4>',  
  12. 'after_title' => '</h4>',  
  13. 'before_caption' => '<p>',  
  14. 'after_caption' => '</p>',  
  15. 'image_size' => 'full',  
  16. 'link_button' => '1',  
  17. 'link_button_text' => 'Read more',  
  18. 'link_button_class' => 'btn btn-default pull-right',  
  19. 'link_button_before' => '',  
  20. 'link_button_after' => '',  
  21. 'id' => '',  
  22. 'twbs' => '3',  
  23. 'use_background_images' => '0',  
  24. 'background_images_height' => '500',  
  25. 'background_images_style_size' => 'cover',  
  26. 'use_javascript_animation' => '1',  
  27. ); 
  28. add_option('cptbc_settings', $defaults);