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
Parameter | Type | Details |
---|---|---|
$url | String | The customized URL to redirect user to when clicking the back lin |
$args | Array | The shortcode attributes for the current page |
Examples
Modify the back link based on page the entry details are displayed on
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 ) {
$url = 'http://custom-return-url-for-entry-detail.com';
}
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?