Using a post-signup hook to get user details

Update: I got this working with a different hook user_register. It looks like wpmu_activate_user was never triggering. I would still like to have this happen after the user verifies and sets a password though. Can anyone help? Current Code: function xxx_whmcs_signup($user_id) { //Get User Fields $user_info2 = get_userdata($user_id); $id = $user_info2->ID; //Get Custom Fields $first_name … Read more

I would like to send a notification email (Asana) whenever something is published (posts, pages, custom post types)

The code below works perfectly When I create a new post, an email is sent out to the email included in the function. I would like to know how I can send an email when anything is published on the website, like custom post types, pages and regular posts function notifyauthor($post_id) { $post = get_post($post_id); … Read more

Set default value for “Additional CSS class(es)” for specific block types

For the columns block type, I’d like to add in a default value of wp-block-columns--padded in the “Additional CSS class(es)” field, the idea being that the user could remove or modify the class as needed (i.e. removing it to disable all padding, changing it wp-block-columns--padded-extra for additional padding, etc.). Is it possible to do this via a filter or something similar? I did look in to wp.hooks.addFilter, but that didn’t allow the user to edit the classes that I added.