I'd consider using get_queried_object() and take the term from there. Example: add_action( 'generate_before_main_content', function(){ if( ...
確定! 回上一頁