PluginProbe
SpiceBox / 0.2.9
SpiceBox v0.2.9
trunk 0.2.2 0.2.3 0.2.4 0.2.5 0.2.6 0.2.7 0.2.8 0.2.9 0.3 0.3.1 0.3.2 0.3.3 0.3.4 0.3.5 0.3.6 0.3.7 0.3.8 0.3.9.1 0.3.9.2 0.4 0.5 0.6 0.7 1.0 All 76 releases
spicebox / inc / spicepress / default-pages / contact-page.php

contact-page.php in SpiceBox 0.2.9, at inc/spicepress/default-pages/contact-page.php

19 lines 748 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 // Create a Contact us page
3 $post = array(
4 'comment_status' => 'closed',
5 'ping_status' => 'closed' ,
6 'post_author' => 1,
7 'post_date' => date('Y-m-d H:i:s'),
8 'post_name' => 'Contact',
9 'post_status' => 'publish' ,
10 'post_title' => 'Contact',
11 'post_type' => 'page',
12 'post_content' => '[contact-form-7 id="6" title="Contact form 1"]'
13 );
14 //insert page and save the id
15 $newvalue = wp_insert_post( $post, false );
16 if ( $newvalue && ! is_wp_error( $newvalue ) ){
17 update_post_meta( $newvalue, '_wp_page_template', 'template/template-contact.php' );
18 }
19 ?>