How to know find the input id for use it on wp_insert_post

I made wp plugin for automatic posting

require ‘crawel.php’;
if (isset($_POST[‘activated’]) && is_admin()){
$new_page_title = $manga_name;
$new_page_content = ‘ manga’;

page-portfolio.php،
$new_page_template = ”;

$page_check = get_page_by_title($new_page_title);

$new_page = array(
‘post_type’ => ‘wp-manga’,
‘post_title’ => $manga_name,
‘post_content’ => $new_page_content,
‘post_status’ => ‘publish’,
‘post_author’ => 1,
);
if(!isset($page_check->ID)){
$new_page_id = wp_insert_post($new_page);
if(!empty($new_page_template)){
update_post_meta($new_page_id, ‘_wp_page_template’,
$new_page_template);
}
}
}

?>

I need to know the id of the tags to fill the input

the plugin that have the tags

that the link of the theme and plugin link

i want
Alternative Name
Type
Manga Artists
Manga Tags

Read more here:: How to know find the input id for use it on wp_insert_post

Leave a Reply

Your email address will not be published. Required fields are marked *