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



get_link › WordPress Function

Depuis2.0.0
Dépréciée2.1.0
get_link ( $bookmark_id, $output = OBJECT, $filter = 'raw' )
Paramètres: (3)
  • (int) $bookmark_id ID of link
    Requis: Oui
  • (string) $output Optional. Type of output. Accepts OBJECT, ARRAY_N, or ARRAY_A. Default OBJECT.
    Requis: Non
    Défaut: OBJECT
  • (string) $filter Optional. How to filter the link for output. Accepts 'raw', 'edit', 'attribute', 'js', 'db', or 'display'. Default 'raw'.
    Requis: Non
    Défaut: 'raw'
Voir:
Retourne:
  • (object|array) Bookmark object or array, depending on the type specified by `$output`.
Défini(e) dans:
Codex:

Retrieves bookmark data based on ID.



Source

function get_link( $bookmark_id, $output = OBJECT, $filter = 'raw' ) {
	_deprecated_function( __FUNCTION__, '2.1.0', 'get_bookmark()' );
	return get_bookmark($bookmark_id, $output, $filter);
}