Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This function makes WP Fusion work with the mess that is the "signupforms" plugin. Do not remove.
- function wpf_add_signupforms_users() {
- $args = array(
- 'fields' => 'ID',
- 'meta_query' => array(
- array(
- 'key' => wp_fusion()->crm->slug . '_contact_id',
- 'compare' => 'NOT EXISTS'
- )
- )
- );
- $users = get_users( $args );
- if( !empty( $users ) ) {
- foreach( $users as $user_id ) {
- wp_fusion()->user->user_register( $user_id, null, true );
- }
- }
- }
- add_action( 'init', 'wpf_add_signupforms_users' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement