jetpack_mobile_customizer_controls

The Jetpack by WordPress.com jetpack mobile customizer controls function.

Description

jetpack_mobile_customizer_controls( $wp_customize ); 

Parameters (1)

0. $wp_customize
The wp customize.

Usage

  1. if ( !function_exists( 'jetpack_mobile_customizer_controls' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/minileven/minileven.php'; 
  3.  
  4. // The wp customize. 
  5. $wp_customize = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = jetpack_mobile_customizer_controls($wp_customize); 
  9.  

Defined (1)

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

/modules/minileven/minileven.php  
  1. function jetpack_mobile_customizer_controls( $wp_customize ) { 
  2. $wp_customize->add_setting( 'wp_mobile_custom_css' , array( 
  3. 'default' => true,  
  4. 'transport' => 'postMessage',  
  5. 'type' => 'option' 
  6. ) ); 
  7.  
  8. $wp_customize->add_control( 'jetpack_mobile_css_control', array( 
  9. 'type' => 'checkbox',  
  10. 'label' => __( 'Include this CSS in the Mobile Theme', jetpack ),  
  11. 'section' => jetpack_custom_css,  
  12. 'settings' => 'wp_mobile_custom_css',  
  13. ) );