wpseo_is_url_relative

Check whether a url is relative.

Description

wpseo_is_url_relative( (string) $url ); 

Parameters (1)

0. $url (string)
URL input to check.

Usage

  1. if ( !function_exists( 'wpseo_is_url_relative' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'yoast-seo/inc/wpseo-functions-deprecated.php'; 
  3.  
  4. // URL input to check. 
  5. $url = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wpseo_is_url_relative($url); 
  9.  

Defined (1)

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

/inc/wpseo-functions-deprecated.php  
  1. function wpseo_is_url_relative( $url ) { 
  2. _deprecated_function( __FUNCTION__, 'WPSEO 1.6.1', 'WPSEO_Utils::is_url_relative()' ); 
  3.  
  4. return WPSEO_Utils::is_url_relative( $url );