WordPress强化-给不同状态的文字添加颜色

add_action('admin_footer','posts_status_color');
function posts_status_color() {
	?>
	    <style>
	    .status-draft {
		background: #FCE3F2 !important;
	}
	.status-pending {
		background: #87C5D6 !important;
	}
	.status-publish {
		/* no background keep wp alternating colors */
	}
	.status-future {
		background: #C6EBF5 !important;
	}
	.status-private {
		background:#F2D46F;
	}
	</style>
	    <?php
}

转载于:https://www.kancloud.cn/gitcafe/yunluo_wp_code/1316449

7f8039ba62c36dc72400825223e1a35a

相关文章