jetpack_require_lib_dir

Returns the location of Jetpack's lib directory.

Description

(string) jetpack_require_lib_dir(); 

This filter is applied in require_lib().

Returns (string)

Location of Jetpack library directory.


Usage

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

Defined (1)

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

/jetpack.php  
  1. function jetpack_require_lib_dir() { 
  2. return JETPACK__PLUGIN_DIR . '_inc/lib';