Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




wp_get_links [ WordPress Function ]

wp_get_links ( $args = '' )
Parameters:
  • (string) $args a query string
See:
Returns:
  • (null|string)
Defined at:



Gets the links associated with category.

Source


<?php
function wp_get_links($args '') {
    
_deprecated_function__FUNCTION__'2.1''wp_list_bookmarks()' );

    if ( 
strpos$args'=' ) === false ) {
        
$cat_id $args;
        
$args add_query_arg'category'$cat_id$args );
    }

    
$defaults = array(
        
'after' => '<br />',
        
'before' => '',
        
'between' => ' ',
        
'categorize' => 0,
        
'category' => '',
        
'echo' => true,
        
'limit' => -1,
        
'orderby' => 'name',
        
'show_description' => true,
        
'show_images' => true,
        
'show_rating' => false,
        
'show_updated' => true,
        
'title_li' => '',
    );

    
$r wp_parse_args$args$defaults );

    return 
wp_list_bookmarks($r);
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics