wp_get_linksbyname

The timeline below displays how wordpress function wp_get_linksbyname has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.3

/**
 * Gets the links associated with the named category.
 *
 * @since 1.0.1
 * @deprecated 2.1.0 Use wp_list_bookmarks()
 * @see wp_list_bookmarks()
 *
 * @param string $category The category to use.
 * @param string $args
 * @return string|null
 */
function wp_get_linksbyname($category, $args = '')
{
    _deprecated_function(__FUNCTION__, '2.1.0', 'wp_list_bookmarks()');
    $defaults = array('after' => '<br />', 'before' => '', 'categorize' => 0, 'category_after' => '', 'category_before' => '', 'category_name' => $category, 'show_description' => 1, 'title_li' => '');
    $parsed_args = wp_parse_args($args, $defaults);
    return wp_list_bookmarks($parsed_args);
}

WordPress Version: 4.6

/**
 * Gets the links associated with the named category.
 *
 * @since 1.0.1
 * @deprecated 2.1.0 Use wp_list_bookmarks()
 * @see wp_list_bookmarks()
 *
 * @param string $category The category to use.
 * @param string $args
 * @return string|null
 */
function wp_get_linksbyname($category, $args = '')
{
    _deprecated_function(__FUNCTION__, '2.1.0', 'wp_list_bookmarks()');
    $defaults = array('after' => '<br />', 'before' => '', 'categorize' => 0, 'category_after' => '', 'category_before' => '', 'category_name' => $category, 'show_description' => 1, 'title_li' => '');
    $r = wp_parse_args($args, $defaults);
    return wp_list_bookmarks($r);
}

WordPress Version: 4.4

/**
 * Gets the links associated with the named category.
 *
 * @since 1.0.1
 * @deprecated 2.1.0 Use wp_list_bookmarks()
 * @see wp_list_bookmarks()
 *
 * @param string $category The category to use.
 * @param string $args
 * @return string|null
 */
function wp_get_linksbyname($category, $args = '')
{
    _deprecated_function(__FUNCTION__, '2.1', 'wp_list_bookmarks()');
    $defaults = array('after' => '<br />', 'before' => '', 'categorize' => 0, 'category_after' => '', 'category_before' => '', 'category_name' => $category, 'show_description' => 1, 'title_li' => '');
    $r = wp_parse_args($args, $defaults);
    return wp_list_bookmarks($r);
}

WordPress Version: 4.1

/**
 * Gets the links associated with the named category.
 *
 * @since 1.0.1
 * @deprecated 2.1.0
 * @deprecated Use wp_list_bookmarks()
 * @see wp_list_bookmarks()
 *
 * @param string $category The category to use.
 * @param string $args
 * @return string|null
 */
function wp_get_linksbyname($category, $args = '')
{
    _deprecated_function(__FUNCTION__, '2.1', 'wp_list_bookmarks()');
    $defaults = array('after' => '<br />', 'before' => '', 'categorize' => 0, 'category_after' => '', 'category_before' => '', 'category_name' => $category, 'show_description' => 1, 'title_li' => '');
    $r = wp_parse_args($args, $defaults);
    return wp_list_bookmarks($r);
}

WordPress Version: 3.9

/**
 * Gets the links associated with the named category.
 *
 * @since 1.0.1
 * @deprecated 2.1.0
 * @deprecated Use wp_list_bookmarks()
 * @see wp_list_bookmarks()
 *
 * @param string $category The category to use.
 * @param string $args
 * @return bool|null
 */
function wp_get_linksbyname($category, $args = '')
{
    _deprecated_function(__FUNCTION__, '2.1', 'wp_list_bookmarks()');
    $defaults = array('after' => '<br />', 'before' => '', 'categorize' => 0, 'category_after' => '', 'category_before' => '', 'category_name' => $category, 'show_description' => 1, 'title_li' => '');
    $r = wp_parse_args($args, $defaults);
    return wp_list_bookmarks($r);
}

WordPress Version: 3.7

/**
 * Gets the links associated with the named category.
 *
 * @since 1.0.1
 * @deprecated 2.1
 * @deprecated Use wp_list_bookmarks()
 * @see wp_list_bookmarks()
 *
 * @param string $category The category to use.
 * @param string $args
 * @return bool|null
 */
function wp_get_linksbyname($category, $args = '')
{
    _deprecated_function(__FUNCTION__, '2.1', 'wp_list_bookmarks()');
    $defaults = array('after' => '<br />', 'before' => '', 'categorize' => 0, 'category_after' => '', 'category_before' => '', 'category_name' => $category, 'show_description' => 1, 'title_li' => '');
    $r = wp_parse_args($args, $defaults);
    return wp_list_bookmarks($r);
}