$label ) { $new[ $key ] = $label; if ( 'name' === $key ) { $new['afaq_shortcode'] = __( 'Shortcode', 'accordion-faq-plugin' ); } } return $new; } /** * Render the shortcode column content. * * @param string $content Existing content. * @param string $column_name Column key. * @param int $term_id Term ID. * @return string */ public function tax_column_content( $content, $column_name, $term_id ) { if ( 'afaq_shortcode' !== $column_name ) { return $content; } $shortcode = sprintf( '[quick_faq id="%d"]', absint( $term_id ) ); return '' . esc_html( $shortcode ) . ''; } }