Skip to content
Docs
Get RestroPress

Filter

rpress_menu_qr_table_arg

Updated
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#

ParameterTypeDescription
$valuestringQuery 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), in RPRESS_Menu_QR::target_url()

See also#

Was this page helpful?