wp_in

The Jetpack by WordPress.com wp in function.

Description

wp_in( $needle, $haystack ); 

Parameters (2)

0. $needle
The needle.
1. $haystack
The haystack.

Usage

  1. if ( !function_exists( 'wp_in' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/functions.compat.php'; 
  3.  
  4. // The needle. 
  5. $needle = null; 
  6.  
  7. // The haystack. 
  8. $haystack = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = wp_in($needle, $haystack); 
  12.  

Defined (1)

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

/functions.compat.php  
  1. function wp_in( $needle, $haystack ) { 
  2. return false !== strpos( $haystack, $needle );