Add a new page to wordpress programmatically

Is there a function in the wordpress api that lets me programatically add pages ?

something on the lines of :

Read More
add_page($title,$content) 

Is there such a function ?

Related posts

Leave a Reply

2 comments