gravityflow_webhook_url_in_note

Description

Use the filter gravityflow_webhook_url_in_note to hide/unhide the URL appearing in notes when using the Outgoing Webhook step. It would be a valuable one to apply when API keys or basic authentication credentials are in the URL parameters.

Parameters

ParameterTypeDetails
$show_url_in_note  BooleanTo show the URL/Not

Example

Hide the URL appearing in notes by overriding the default value true to false

add_filter('gravityflow_webhook_url_in_note', 'sh_gravityflow_webhook_url_in_note', 10, 2);
function sh_gravityflow_webhook_url_in_note( $show_url_in_note ) {
    $show_url_in_note = false;
    return $show_url_in_note;
}

Placement

This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.

See also the PHP section in this article: Where Do I Put This Code?