web_dor_update_post_format

The Business Responsive web dor update post format function.

Description

web_dor_update_post_format(); 

Usage

  1. if ( !function_exists( 'web_dor_update_post_format' ) ) { 
  2. require_once '/functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = web_dor_update_post_format(); 
  7.  

Defined (1)

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

/functions.php  
  1. function web_dor_update_post_format() 
  2.  
  3. global $options_post_format_options; 
  4.  
  5. foreach ($options_post_format_options as $value) { 
  6.  
  7. if (get_theme_mod($value['id']) === FALSE) { 
  8. $value['id'] = $value['std']; 
  9. } else { 
  10. $value['id'] = get_theme_mod($value['id']); 
  11.  
  12. switch ($pf_post_format) { 
  13.  
  14. case 1: 
  15. return "post-1"; 
  16. break; 
  17.  
  18. case 2: 
  19. return "post-2"; 
  20. break; 
  21.  
  22. case 3: 
  23. return "post-3"; 
  24. break;