wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



get_link › WordPress Function

Da2.0.0
Deprecato2.1.0
› get_link ( $bookmark_id, $output = object, $filter = 'raw' )
Parametri: (3)
  • (int) $bookmark_id ID of link
    Richiesto: Sì
  • (string) $output Optional. Type of output. Accepts OBJECT, ARRAY_N, or ARRAY_A. Default OBJECT.
    Richiesto: No
    Default: object
  • (string) $filter Optional. How to filter the link for output. Accepts 'raw', 'edit', 'attribute', 'js', 'db', or 'display'. Default 'raw'.
    Richiesto: No
    Default: 'raw'
Vedi:
Ritorna:
  • (object|array|null) Bookmark object or array, depending on the type specified by `$output`.
    Null if the bookmark does not exist.
Definito a:
Codex:

Retrieves bookmark data based on ID.



Sorgenti

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