Best action hook to create custom post and assign taxonomy terms to it on plugin activation?
When I install the plugin, I want to create 10 CPTs of a particular type, which I define in the init action hook, … Read more
When I install the plugin, I want to create 10 CPTs of a particular type, which I define in the init action hook, … Read more
I have a multi-author blog, on which there are two schedule cron functions. The first function moves all public posts in the pending … Read more
I’m using register_block_type to register my blocks. I’m not sure what is the best hook to use, between init and enqueue_block_editor_assets. I suppose … Read more
I want to intercept requests to public files in WordPress, more specifically all requests to any file located in /wp-content/uploads. Using request or … Read more
I`m trying to retrieve the names of taxonomy items and include them into a theme admin panel. function retrieve_my_terms() { global $terms; $terms … Read more
I’m hoping someone can point me in the right direction here. I’m using the WordPress Plugin Boilerplate to develop a custom plugin. On … Read more
I am trying to redirect the user after form submission using wp_redirect() but it it is not working. I am submitting data using … Read more
There seems to be quite a controversial opinion on the WordPress flush_rewrite_rules() function. According to the Codex, it is highly discouraged to use … Read more
Is possible to change page title on the fly from plugin? I’ve try global $post, but seem like plugin runs after. Any Ideas? … Read more
When you use the register post type and register taxonomy functions in your functions.php, where do all that setting info get stored in … Read more