• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WordPress a2z

WordPress a2z

WordPress Dynamic API Reference

  • Home
  • Plugins
  • Themes
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / twentyfifteen_get_link_url() – Return the post URL.

You appear to be a bot. Output may be restricted

Description

Return the post URL.

Falls back to the post permalink if no URL is found in the post.

Usage

$string = twentyfifteen_get_link_url();

Parameters

Returns

string The Link format URL.

Source

File name: twentyfifteen/inc/template-tags.php
Lines:

1 to 5 of 5
  function twentyfifteen_get_link_url() {
    $has_url = get_url_in_content( get_the_content() );

    return $has_url ? $has_url : apply_filters( 'the_permalink', get_permalink() );
  }
 

 View on Trac

Published: 19th December 2019 | Last updated: 19th December 2019

Primary Sidebar

Information

Function name: twentyfifteen_get_link_url
Plugin ref: Twenty Fifteen
Version: 3.3
Sourcefile: inc/template-tags.php
File ref: inc/template-tags.php
Deprecated?: No
API Letters: G,L,T,U

Footer

WordPress a2z
WordPress a2z
WordPress Dynamic API Reference
WordPress 6.1.1. PHP: 8.0.28
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  wp-a2z.org
© Copyright WordPress a2z 2014-2023. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites