Title: franpol's Replies | WordPress.org

---

# franpol

  [  ](https://wordpress.org/support/users/franpol/)

 *   [Profile](https://wordpress.org/support/users/franpol/)
 *   [Topics Started](https://wordpress.org/support/users/franpol/topics/)
 *   [Replies Created](https://wordpress.org/support/users/franpol/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/franpol/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/franpol/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/franpol/engagements/)
 *   [Favorites](https://wordpress.org/support/users/franpol/favorites/)

 Search replies:

## Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Function to translate widget](https://wordpress.org/support/topic/function-to-translate-widget/)
 *  Thread Starter [franpol](https://wordpress.org/support/users/franpol/)
 * (@franpol)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/function-to-translate-widget/#post-10920501)
 * Thanks bcworkz for your answer.
 * P.S : I’m not in control of the rushabh77. I thought that he tried to modify 
   the code, but no. I think you can block this user account, and delete his message
   which had no sense.
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Create page with native function wp](https://wordpress.org/support/topic/create-page-with-native-function-wp/)
 *  Thread Starter [franpol](https://wordpress.org/support/users/franpol/)
 * (@franpol)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/create-page-with-native-function-wp/#post-10907088)
 * Thanks,
    to help other novice like me, find below an exemple to create a page(
   let the field guid free to let wordpress choose the URL) :
 *     ```
       $user_id = get_current_user_id();
       		$defaults = array(
               'post_author' => $user_id,
               'post_content' => '',
               'post_content_filtered' => '',
               'post_title' => 'Page_title',
               'post_excerpt' => '',
               'post_status' => 'publish',
               'post_type' => 'page',
               'comment_status' => '',
               'ping_status' => '',
               'post_password' => '',
               'to_ping' =>  '',
               'pinged' => '',
               'post_parent' => 0,
               'menu_order' => 0,
               'guid' => '',
               'import_id' => 0,
               'context' => '',
       		);
       		$postspe = wp_parse_args($postspe, $defaults);
       		wp_insert_post( $postspe);
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)