I am creating a post from the front end using (shortened for brevity); if (empty($_POST...
If I use the wp_insert_post in a plugin, will I have to check the content for SQL injection problems and XSS or will ...
-
May 12, 2022
- 0 Comments
I have a custom post type to which I’d like to programmatically import data. I have followed these instructions and these, and I ...
-
May 11, 2022
- 0 Comments
I have created a block template so that every new post starts with a certain collection of blocks. In the below reduced example, ...
-
May 10, 2022
- 0 Comments
i am currently working on a snippet to insert a new post dynamically (it’s a custom post type). During this new post creation ...
-
May 10, 2022
- 0 Comments
I’m trying to automatically create a new post when a post containing a certain custom field is saved – hooking an insert_post function ...
-
May 9, 2022
- 0 Comments
When I insert a post I’ve found that there is a slow call to wp_unique_post_slug from within insert_post (In the database I’m using ...
-
May 8, 2022
- 0 Comments
I have the following hook which sets a default “hotness” for a post. For context, hotness is a meta_value saved to the post, ...
-
May 8, 2022
- 0 Comments
Okay guys, here’s the scenario. I’m am trying to setup a function that will automatically duplicate a post (when published) over to another ...
-
May 7, 2022
- 0 Comments