-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
152 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
/** | ||
* Used to set up custom parameters during WordPress install process | ||
* Must be in the same DIR as the Phing build script | ||
* | ||
* Only run when using "phing wp-install" or "phing wp-install-only". | ||
* | ||
* @internal This file uses build.properties settings | ||
* | ||
* @package WordPhing | ||
*/ | ||
|
||
|
||
// Add custom install code here | ||
|
||
|
||
//Example: remove Hello Dolly | ||
delete_plugins(array('hello.php')); | ||
|
||
|
||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
/** | ||
* Used to run any script on WordPress. | ||
* Must be in the same DIR as the Phing build script | ||
* | ||
* Use "phing wp-run" to run script | ||
* See http://codex.wordpress.org/Function_Reference for Examples | ||
* | ||
* | ||
* @internal This file uses build.properties settings | ||
* | ||
* @package WordPhing | ||
*/ | ||
|
||
|
||
|
||
//Example: to create 35 posts on the fly | ||
|
||
for ($k = 0 ; $k < 35; $k++){ | ||
|
||
// Create post object | ||
|
||
$my_post = array( | ||
'post_title' => $k . '- Posts', | ||
'post_content' => 'This is my post.', | ||
'post_status' => 'publish', | ||
'post_author' => 1, | ||
'post_category' => array(1) | ||
); | ||
|
||
// Insert the post into the database | ||
wp_insert_post( $my_post ); | ||
|
||
} | ||
|
||
?> |