query.insert_post

/ Database / query.insert_post

Title : query.insert_post
Purpose : Insert or update a post. if args has ‘ID’ set to a value, then post will be updated. args can be array or json
Syntax :
Input Parameters : args
Return Value : The post ID on success. The value 0 or WP_Error on failure.
Example 1 :
Code :
Categories
Most Popular

Leave a Reply

Your email address will not be published.