Uma área de pesquisa sobre o WordPress para devs e autores do tema



get_link ›

Desde2.0.0
Obsoleto2.1.0
get_link ( $bookmark_id, $output = OBJECT, $filter = 'raw' )
Parâmetros: (3)
  • (int) $bookmark_id ID of link
    Required: Yes
  • (string) $output Optional. Type of output. Accepts OBJECT, ARRAY_N, or ARRAY_A. Default OBJECT.
    Required: No
    Padrão: OBJECT
  • (string) $filter Optional. How to filter the link for output. Accepts 'raw', 'edit', 'attribute', 'js', 'db', or 'display'. Default 'raw'.
    Required: No
    Padrão: 'raw'
Ver:
Retorna:
  • (object|array) Bookmark object or array, depending on the type specified by `$output`.
Definido em:
Codex:

Retrieves bookmark data based on ID.



Fonte

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