gravityflow_back_link_url_entry_detail

Description

The gravityflow_back_link_url_entry_detail is used to customize the URL of the back link from the entry detail page. Useful in scenarios where you are presenting inbox or status views of entries through a non-Gravity Flow solution such as Gravity Views.

Parameters

ParameterTypeDetails
$urlStringThe customized URL to redirect user to when clicking the back lin
$argsArrayThe shortcode attributes for the current page

Examples

Modify the back link based on page the entry details are displayed on

1
2
3
4
5
6
7
8
add_filter( 'gravityflow_back_link_url_entry_detail', 'sh_return_specific_url', 10, 2 );
function sh_return_specific_url( $url, $args ) {
    if ( strpos( $args['detail_base_url'], 'specific-page-scenario' ) > 0 ) {
    }
 
    return $url;
}

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?