中的术语表edit-tags.php
第页,在WP_Terms_List_Table::column_name()
方法:
$pad = str_repeat( \'— \', max( 0, $this->level ) );
/**
* Filters display of the term name in the terms list table.
*
* The default output may include padding due to the term\'s
* current level in the term hierarchy.
*
* @since 2.5.0
*
* @see WP_Terms_List_Table::column_name()
*
* @param string $pad_tag_name The term name, padded if not top-level.
* @param WP_Term $tag Term object.
*/
$name = apply_filters( \'term_name\', $pad . \' \' . $tag->name, $tag );
Example:
以下是一种替代
—
用一颗子弹,用
term_name
过滤器:
add_filter( \'term_name\', function( $name, $tag )
{
if( did_action( \'load-edit-tags.php\' ) )
$name = str_replace( \'—\', \'•\', $name ); //Adjust to your needs!
return $name;
}, 10, 2 );
注意,这里我们将其限制为
edit-tags.php
屏幕