首页 WordPress函数大全 get_sample_permalink()

get_sample_permalink()

2020-05-01 / 4591阅 / 悠然

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

get_sample_permalink( int $id, string $title = null, string $name = null )

Get a sample permalink based off of the post name.

描述

参数

$id

(int)
(Required)
Post ID or post object.

$title

(string)
(Optional)
Title to override the post's current title when generating the post name.

Default value: null

$name

(string)
(Optional)
Name to override the post name.

Default value: null

返回

(array) Array containing the sample permalink with placeholder for the post name, and the post name.

  • (string) The permalink with placeholder for the post name.
  • '1'
    (string) The post name.
大家谈论
    我的见解