hayhow
Forum Replies Created
-
Hi Andrewshu,
I’ve just upgraded to WP 6.1.1 and UM 2.5.4 and I’m still getting the same errors.
Thanks,Hayhow
Hi,
Can you take a look at this please ?
Thanks.
Hey UM Team,
Thanks for your quick reply.
Brilliant. Solved straight away by removing the
um_post_registration_approved_hookaction.I set the priority of my function to 5 to ensure it runs before
um_post_registration_approved_hook.My final snippet looks like this:
// Auto approve a user on creation in WP Admin add_action('um_registration_complete','um_approve_admin_created_user_automatically', 5, 2); function um_approve_admin_created_user_automatically( $user_id ){ if( is_admin() ){ um_fetch_user( $user_id ); UM()->user()->approve(); remove_action( 'um_post_registration_approved_hook', 'um_post_registration_approved_hook', 10, 2 ); } }Thank you so much for your support.
Kind regards,
Dave Hayhow
Forum: Plugins
In reply to: [Flamingo] Meta boxes for Flamingo Inbound MessagesHi Takayuki,
Thank you very much. I’ve used the
load-flamingo_page_flamingo_inboundaction hook and it works perfectly. I’ve found that like youradd_meta_box()function calls, they only work when the $screen is left as the defaultnull, and not the post-typeflamingo_inbound.Thanks again!