of_recognized_background_position

Get recognized background positions.

Description

(array) of_recognized_background_position(); 

Returns (array)


Usage

  1. if ( !function_exists( 'of_recognized_background_position' ) ) { 
  2. require_once '/inc/includes/class-options-sanitize.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = of_recognized_background_position(); 
  7.  

Defined (1)

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

/inc/includes/class-options-sanitize.php  
  1. function of_recognized_background_position() { 
  2. $default = array( 
  3. 'top left' => __( 'Top Left', 'the-app' ),  
  4. 'top center' => __( 'Top Center', 'the-app' ),  
  5. 'top right' => __( 'Top Right', 'the-app' ),  
  6. 'center left' => __( 'Middle Left', 'the-app' ),  
  7. 'center center' => __( 'Middle Center', 'the-app' ),  
  8. 'center right' => __( 'Middle Right', 'the-app' ),  
  9. 'bottom left' => __( 'Bottom Left', 'the-app' ),  
  10. 'bottom center' => __( 'Bottom Center', 'the-app' ),  
  11. 'bottom right' => __( 'Bottom Right', 'the-app') 
  12. ); 
  13. return apply_filters( 'of_recognized_background_position', $default );