post_type_archive_title

post_type_archive_title

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('post_type_archive_title') is found 1 times:

  • /wp-includes/general-template.php line 1539
    1535
    1536
    1537
    1538
    1539
    1540
    1541
    1542
    1543
    1544
    1545
    *
     * @param string $post_type_name Post type 'name' label.
     * @param string $post_type      Post type.
     */
    $title = apply_filters( 'post_type_archive_title', $post_type_obj->labels->name, $post_type );
     
    if ( $display ) {
        echo $prefix . $title;
    } else {
        return $prefix . $title;
    }

See this hook used in plugins: