The webhook triggers tab

Below you will find a list of all available WP Webhooks triggers. To use one, you need to specify a URL that should be triggered to send the available data. For more information on that, you can check out each webhook trigger description or our product documentation by clicking here.

Send Data On Register

This webhook fires as soon as a user registers.
Argument Description
user_object The request will send the full user object as an array. Please see https://codex.wordpress.org/Class_Reference/WP_User for more details.
user_meta The user meta is also pushed to the user object. You will find it on the first layer of the object as well.
acf_data The Advanced Custom Fields user meta is also pushed to the user object. You will find it on the first layer of the object as well.

Here is an example of all the available default fields that are sent after the trigger is fired. The fields may vary based on custom extensions or third party plugins.

Array
(
    [data] => Array
        (
            [ID] => 1
            [user_login] => admin
            [user_pass] => $P$BVbptZxEcZV2yeLyYeN.O4ZeG8225d.
            [user_nicename] => admin
            [user_email] => admin@ironikus.dev
            [user_url] => 
            [user_registered] => 2018-11-06 14:19:18
            [user_activation_key] => 
            [user_status] => 0
            [display_name] => admin
        )

    [ID] => 1
    [caps] => Array
        (
            [administrator] => 1
        )

    [cap_key] => irn_capabilities
    [roles] => Array
        (
            [0] => administrator
        )

    [allcaps] => Array
        (
            [switch_themes] => 1
            [edit_themes] => 1
            [activate_plugins] => 1
            [edit_plugins] => 1
            [edit_users] => 1
            [edit_files] => 1
            [manage_options] => 1
            [moderate_comments] => 1
            [manage_categories] => 1
            [manage_links] => 1
            [upload_files] => 1
            [import] => 1
            [unfiltered_html] => 1
            [edit_posts] => 1
            [edit_others_posts] => 1
            [edit_published_posts] => 1
            [publish_posts] => 1
            [edit_pages] => 1
            [read] => 1
            [level_10] => 1
            [level_9] => 1
            [level_8] => 1
            [level_7] => 1
            [level_6] => 1
            [level_5] => 1
            [level_4] => 1
            [level_3] => 1
            [level_2] => 1
            [level_1] => 1
            [level_0] => 1
            [edit_others_pages] => 1
            [edit_published_pages] => 1
            [publish_pages] => 1
            [delete_pages] => 1
            [delete_others_pages] => 1
            [delete_published_pages] => 1
            [delete_posts] => 1
            [delete_others_posts] => 1
            [delete_published_posts] => 1
            [delete_private_posts] => 1
            [edit_private_posts] => 1
            [read_private_posts] => 1
            [delete_private_pages] => 1
            [edit_private_pages] => 1
            [read_private_pages] => 1
            [delete_users] => 1
            [create_users] => 1
            [unfiltered_upload] => 1
            [edit_dashboard] => 1
            [update_plugins] => 1
            [delete_plugins] => 1
            [install_plugins] => 1
            [update_themes] => 1
            [install_themes] => 1
            [update_core] => 1
            [list_users] => 1
            [remove_users] => 1
            [promote_users] => 1
            [edit_theme_options] => 1
            [delete_themes] => 1
            [export] => 1
            [administrator] => 1
        )

    [filter] => 
    [user_meta] => Array
        (
            [nickname] => Array
                (
                    [0] => admin
                )

            [first_name] => Array
                (
                    [0] => Jon
                )

            [last_name] => Array
                (
                    [0] => Doe
                )

            [description] => Array
                (
                    [0] => My descriptio 
                )

            [rich_editing] => Array
                (
                    [0] => true
                )

            [syntax_highlighting] => Array
                (
                    [0] => true
                )

            [comment_shortcuts] => Array
                (
                    [0] => false
                )

            [admin_color] => Array
                (
                    [0] => fresh
                )

            [use_ssl] => Array
                (
                    [0] => 0
                )

            [show_admin_bar_front] => Array
                (
                    [0] => true
                )

            [locale] => Array
                (
                    [0] => 
                )

            [irn_capabilities] => Array
                (
                    [0] => a:1:{s:13:"administrator";b:1;}
                )

            [irn_user_level] => Array
                (
                    [0] => 10
                )

            [dismissed_wp_pointers] => Array
                (
                    [0] => wp111_privacy
                )

            [show_welcome_panel] => Array
                (
                    [0] => 1
                )

            [session_tokens] => Array
                (
                    [0] => a:1:{}
                )

            [irn_dashboard_quick_press_last_post_id] => Array
                (
                    [0] => 4
                )

            [community-events-location] => Array
                (
                    [0] => a:1:{s:2:"ip";s:9:"127.0.0.0";}
                )

            [show_try_gutenberg_panel] => Array
                (
                    [0] => 0
                )

        )

    [acf_data] => Array
        (
            [demo_repeater_field] => Array
                (
                    [0] => Array
                        (
                            [demo_field_1] => Demo Value 1
                            [demo_field_2] => Demo Value 2
                        )

                    [1] => Array
                        (
                            [demo_field_1] => Demo Value 1
                            [demo_field_2] => Demo Value 2
                        )

                )

            [demo_text_field] => Some demo text
            [demo_true_false] => 1
        )

)

This webhook trigger is used to send data, on the creation of a user, to one or multiple given webhook URL's.
This description is uniquely made for the Send Data On Register (create_user) webhook trigger.

How to use Send Data On Register (create_user)

  1. To get started, you need to add your receiving URL endpoint, that accepts webhook requests, from the third-party provider or service you want to use.
  2. Once you have this URL, please place it into the Webhook URL field above.
  3. For better identification of the webhook URL, we recommend to also fill the Webhook Name field. This field will be used as the slug for your webhook URL. In case you leave it empty, we will automatically generate a random number as an identifier.
  4. After you added your Webhook URL, press the Add button to finish adding the entry.
  5. That's it! Now you can receive data on the URL once the trigger fires.
  6. Next to the Webhook URL, you will find a settings item, which you can use to customize the payload/request.

When does this trigger fire?

This trigger is registered on the user_register hook:
https://developer.wordpress.org/reference/hooks/user_register/

Here is the call within our code we use to fire this trigger:

add_action( 'user_register', array( $this, 'ironikus_trigger_user_register_init' ), 10, 1 );

IMPORTANT: Please note that this webhook does not fire, by default, once the actual trigger (user_register) is fired, but as soon as the WordPress shutdown hook fires. This is important since we want to allow third-party plugins to make their relevant changes before we send over the data. To deactivate this functionality, please go to our Settings and activate the Deactivate Post Trigger Delay settings item. This results in the webhooks firing straight after the initial hook is called.

Tipps

  1. In case you don't need a specified webhook URL at the moment, you can simply deactivate it by clicking the Deactivate link next to the Webhook URL. This results in the specified URL not being fired once the trigger fires.
  2. You can use the Send demo button to send a static request to your specified Webhook URL. Please note that the data sent within the request might differ from your live data.
  3. Within the Settings link next to your Webhook URL, you can use customize the functionality of the request. It contains certain default settings like changing the request type the data is sent in, or custom settings, depending on your trigger. An explanation for each setting is right next to it. (Please don't forget to save the settings once you changed them - the button is at the end of the popup.)
  4. You can also check the response you get from the demo webhook call. To check it, simply open the console of your browser and you will find an entry there, which gives you all the details about the response.

In case you would like to learn more about our plugin, please check out our documentation at:
https://ironikus.com/docs/article-categories/get-started/