twentyfifteen_init_jetpack

The Jetpack by WordPress.com twentyfifteen init jetpack function.

Description

twentyfifteen_init_jetpack(); 

Usage

  1. if ( !function_exists( 'twentyfifteen_init_jetpack' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/theme-tools/compat/twentyfifteen.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = twentyfifteen_init_jetpack(); 
  7.  

Defined (1)

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

/modules/theme-tools/compat/twentyfifteen.php  
  1. function twentyfifteen_init_jetpack() { 
  2. /** 
  3. * Add our compat CSS file for custom widget stylings and such. 
  4. * Set the version equal to filemtime for development builds, and the JETPACK__VERSION for production 
  5. * or skip it entirely for wpcom. 
  6. */ 
  7. $version = false; 
  8. if ( method_exists( 'Jetpack', 'is_development_version' ) ) { 
  9. $version = Jetpack::is_development_version() ? filemtime( plugin_dir_path( __FILE__ ) . 'twentyfifteen.css' ) : JETPACK__VERSION
  10. wp_enqueue_style( 'twentyfifteen-jetpack', plugins_url( 'twentyfifteen.css', __FILE__ ), array(), $version ); 
  11. wp_style_add_data( 'twentyfifteen-jetpack', 'rtl', 'replace' );