esc_url

Checks and cleans a URL.

Description

esc_url( $url ); 

Parameters (1)

0. $url
The url.

Usage

  1. if ( !function_exists( 'esc_url' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'yoast-seo/vendor/yoast/whip/tests/RequirementsCheckerTest.php'; 
  3.  
  4. // The url. 
  5. $url = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = esc_url($url); 
  9.  

Defined (1)

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

/vendor/yoast/whip/tests/RequirementsCheckerTest.php  
  1. function esc_url( $url ) { 
  2. return $url;