jetpack_is_agent

jetpack_is_agent

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: jetpack.15.5

apply_filters('jetpack_is_agent') is found 2 times:

  • /jetpack_vendor/automattic/jetpack-device-detection/src/class-user-agent-info.php line 2322
    			$cached_result = self::is_agent_user_agent( $user_agent );
    
    			/** This filter is documented below. */
    			if ( function_exists( 'apply_filters' ) ) {
    				$cached_result = apply_filters( 'jetpack_is_agent', $cached_result, $user_agent );
    			}
    			return $cached_result;
    		}
    
    		if ( empty( $user_agent ) ) {
    			// Empty User-Agent is likely programmatic.
    
  • /jetpack_vendor/automattic/jetpack-device-detection/src/class-user-agent-info.php line 2341
    		 * @param bool   $is_agent   Whether the request is from an agent.
    		 * @param string $user_agent The user agent string.
    		 */
    		if ( function_exists( 'apply_filters' ) ) {
    			$result = apply_filters( 'jetpack_is_agent', $result, $user_agent );
    		}
    		return $result;
    	}
    
    	/**
    	 * Is the given user-agent from an agent?