/** * Display a page title. * * @since 1.0.0 */ function rock_the_page_title() { if ($title = rock_get_the_page_title()) { echo $title; // xss ok } }
/** * Display page titles after the header. * * @action rock_after_header * @since 1.0.0 */ function rock_add_page_title() { if (rock_get_the_page_title()) { get_template_part('templates/parts/page-title'); } }