更新时间:2023-11-30 23:24:34
添加图片内容等需要使用此功能.
You need to use this function for adding the image content and other.
// Create post object
$my_post = array(
'post_title' => '#Enter the title#',
'post_content' => '#Enter the Content#'
,'post_status' => 'publish',
'post_author' => 1
);
wp_insert_post( $my_post );
它不会添加任何切片或其他任何东西.
It will not add any slice or anything else.
谢谢.