Filter
rpress_purchase_link_args
On this page
Filters the final purchase link arguments.
Runs after the passed arguments have been merged with the defaults and the menu item has been loaded, just before the form is rendered. Use it to change the button text, style or class for a specific menu item.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$args | array | Merged purchase link arguments. |
Return value#
array. Purchase link arguments.
Example#
function my_purchase_link_args( $args ) {
$args['class'] = trim( $args['class'] . ' my-add-button' );
return $args;
}
add_filter( 'rpress_purchase_link_args', 'my_purchase_link_args' );
Notes#
Fires from both the list and grid purchase link builders.
Source#
Applied in:
includes/template-functions.php(line 177), inrpress_get_purchase_link()includes/template-functions.php(line 317), inrpress_get_purchase_link_grid()
See also#
Was this page helpful?
