首页 WordPress函数大全 get_archives_link()

get_archives_link()

2020-05-01 / 4724阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

get_archives_link( string $url, string $text, string $format = 'html', string $before = '', string $after = '', bool $selected = false )

Retrieve archive link content based>

Contents

  • Description
    • Parameters
    • Return
    • Source
    • Changelog
  • Related
    • Uses
    • Used By
  • User Contributed Notes

描述

The format can be>

参数

$url

(string)
(Required)
URL to archive.

$text

(string)
(Required)
Archive text description.

$format

(string)
(Optional)
Can be 'link', 'option', 'html', or custom.

Default value: 'html'

$before

(string)
(Optional)
Content to prepend to the description.

Default value: ''

$after

(string)
(Optional)
Content to append to the description.

Default value: ''

$selected

(bool)
(Optional)
Set to true if the current page is the selected archive page.

Default value: false

返回

(string) HTML link content for archive.

大家谈论
    我的见解