Get the name of the template/*html file used
The locate_block_template() function is the main function that resolves the list of possible block templates for any given (queried) page to the final template to use. In this function, it sets the global variable $_wp_current_template_id. This can be used an identifier for the resolved template file. However, please be aware that since the variable starts … Read more