Yes you can, It will be added to the query_vars
property array, You can check for it later in actions for example
add_action(
'pre_get_posts',
function( $wp_query_obj ) {
if ( ! empty( $wp_query_obj->query_vars['my_custom_id'] ) ) {
// ...
}
},
100,
1
);
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…