首页 WordPress函数大全 get_default_post_to_edit()

get_default_post_to_edit()

2020-05-01 / 2936阅 / 悠然

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

get_default_post_to_edit( string $post_type = 'post', bool $create_in_db = false )

Default post information to use when populating the “Write Post” form.

描述

参数

$post_type

(string)
(Optional)
A post type string.

Default value: 'post'

$create_in_db

(bool)
(Optional)
Whether to insert the post into database.

Default value: false

返回

(WP_Post) Post object containing all the default post data as attributes

大家谈论
    我的见解