Filter
rpress_template_pack_locked_url
On this page
Filters the license link in the notice shown when the saved Pro template pack is locked.
Used by the template pack selector in the settings. When the saved pack is a Pro pack that is not entitled to run (and the old menu interface option is off), a warning says customers are seeing the Classic design and links to this URL with the text "Check license".
Available since RestroPress 3.5.1.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$url | string | Link target. Default https://www.restropress.com/pricing/. |
$saved_pack | array | The saved, locked template pack. |
Return value#
string. URL for the link. It is escaped on output.
Example#
add_filter( 'rpress_template_pack_locked_url', 'my_pack_license_url', 10, 2 );
function my_pack_license_url( $url, $saved_pack ) {
if ( 'my-pack' === $saved_pack['id'] ) {
return admin_url( 'admin.php?page=my-pack-license' );
}
return $url;
}
Source#
Applied in:
includes/class-rpress-template-packs.php(line 662), inrpress_pack_selector_callback()
See also#
Was this page helpful?
