Skip to content

Commit

Permalink
use wp_update_post
Browse files Browse the repository at this point in the history
  • Loading branch information
soderlind committed Jan 9, 2024
1 parent 920e0c8 commit d9941f5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .wordpress-org/blueprints/blueprint.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
"php": "8.1",
"wp": "latest"
},
"phpExtensionBundles": [
"kitchen-sink"
],
"steps": [
{
"step": "login",
Expand All @@ -26,7 +23,7 @@
},
{
"step": "runPHP",
"code": "<?php require '/wordpress/wp-load.php'; wp_insert_post( array('post_title' => 'Jobbnorge','post_content' => '<!-- wp:dss/jobbnorge {\"employerID\":\"1981,1992,1980,2770,1989,1994,1986,1984,1985,1987,1996,1988,1982,1983,1995,1993,1991\"} /-->', 'post_status' => 'publish', 'post_author' => 1 ) );"
"code": "<?php require '/wordpress/wp-load.php'; wp_update_post( array('ID' => 2, 'post_title' => 'Jobbnorge','post_content' => '<!-- wp:dss/jobbnorge {\"employerID\":\"1981,1992,1980,2770,1989,1994,1986,1984,1985,1987,1996,1988,1982,1983,1995,1993,1991\"} /-->' ) );"
}
]
}

0 comments on commit d9941f5

Please sign in to comment.