Filter
rpress_menu_qr_table_arg
On this page
Filters the query argument used for the table label in menu QR links.
Runs in RPRESS_Menu_QR::target_url() when a table label is supplied. The default is 'table'. The value goes through sanitize_key(); an empty result falls back to 'table'.
Available since RestroPress 3.5.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$value | string | Query argument name. |
Return value#
string. Query argument name.
Example#
function my_qr_table_arg( $arg ) {
return 'desk';
}
add_filter( 'rpress_menu_qr_table_arg', 'my_qr_table_arg' );
Source#
Applied in:
includes/features/qr-schema/class-rpress-menu-qr.php(line 165), inRPRESS_Menu_QR::target_url()
See also#
Was this page helpful?
