wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



trackback_url › WordPress Function

Depuis0.71
Dépréciéen/a
trackback_url ( $deprecated_echo = true )
Paramètres:
  • (bool) $deprecated_echo Not used.
    Requis: Non
    Défaut: true
Retourne:
  • (void|string) Should only be used to echo the trackback URL, use get_trackback_url() for the result instead.
Défini(e) dans:
Codex:

Displays the current post's trackback URL.



Source

function trackback_url( $deprecated_echo = true ) {
	if ( true !== $deprecated_echo ) {
		_deprecated_argument(
			__FUNCTION__,
			'2.5.0',
			sprintf(
				/* translators: %s: get_trackback_url() */
				__( 'Use %s instead if you do not want the value echoed.' ),
				'<code>get_trackback_url()</code>'
			)
		);
	}

	if ( $deprecated_echo ) {
		echo get_trackback_url();
	} else {
		return get_trackback_url();
	}
}