taxonomies_fields( $content, $column, $term_id )

This function is a callback for rendering the default content of custom columns in a taxonomy (term) list table. It retrieves the value of a custom column for a specific term and echoes it. If no value is found, it echoes an em dash (—) as a placeholder.


Plugin


Namespace

Launchpad


Return

void


Source

File: \includes\class-lp-cpt.php
public function taxonomy_column_default( $content, $column, $term_id ) {  
    $value = get_term_meta( $term_id, $column, true );
    if( $value ){
        _e( $value, $this->text_domain );
    } else {
        _e( "—", $this->text_domain );
    } 
}