1. Home
  2. For Devs
  3. Filter
  4. Create User On Update

Create User On Update

wpwhpro/run/create_action_user_on_update

Description:
This filter allows you to create a user on an update if it doesnt exist. Setup a filter to disable the functionality by passing through a boolean of false.

Important: This is the technical description of creating a user on an update. If you use the update_user action, you can also achieve that using the create_if_none argument (which can be set to yes or no).

Parameter Type Description
true bool True if a user should be created, false if not

        /**
         * Create a user as soon as your specified action webhook fires an update action to the webhook
         */
        $create_user_on_update = apply_filters( 'wpwhpro/run/create_action_user_on_update', true );

Updated on March 31, 2020

Was this article helpful?

Related Articles