twentythirteen_get_link_url

Return the post URL.

Description

(string) twentythirteen_get_link_url(); 

Returns (string)

The Link format URL.


Usage

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

Defined (1)

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

/functions.php  
  1. function twentythirteen_get_link_url() { 
  2. $content = get_the_content(); 
  3. $has_url = get_url_in_content( $content ); 
  4.  
  5. return ( $has_url ) ? $has_url : apply_filters( 'the_permalink', get_permalink() );