Rename Post Formats In WordPress

This code enables you to rename post formats via your child themes functions file :

add_filter( 'gettext_with_context', 'rename_post_formats', 10, 4 );

function rename_post_formats( $translation, $text, $context, $domain ) {

    $names = array(
        'Audio'  => 'Custom Name',
        'Chat' => 'Custom Name',
        'Aside' => 'Custom Name',
    );
    
    if ( $context == 'Post format' ) {
        $translation = str_replace( array_keys( $names ), array_values( $names ), $text );
    }
    
    return $translation;
}

Here’s an example :

Related Tutorials

Was This Tutorial Helpful?

Free

$0

Access only to all free tutorials per month.



Monthly

$75

Access to 10 premium tutorials per month.


Tutorial Request


Includes code guarantee and coding support.

Yearly

$500

Access to 15 premium tutorials per month.


Monthly Tutorial Request


Includes code guarantee and priority coding support.