generate_inside_post_meta_item_output

generate_inside_post_meta_item_output

The generate_inside_post_meta_item_output filter allows you to add content after the post meta.

For example, we can use this snippet to add the text 「Publish in」 before publishing the category meta:

add_filter( 'generate_inside_post_meta_item_output', function( $output, $item ) {
if ( 'categories' === $item ) {
return ' Published in ';
}
return $output;
}, 50, 2 );

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注