esc_html__('Spam Reason', 'antispam_bee') ) ); } /** * Display plugin column values on comments screen * * @since 2.6.0 * @change 2.6.0 * * @param string $column Currently selected column * @param integer $comment_id Comment ID */ public static function print_plugin_column($column, $comment_id) { /* Only Antispam Bee column */ if ( $column !== 'antispam_bee_reason' ) { return; } /* Init data */ $spam_reason = get_comment_meta($comment_id, $column , true); $spam_reasons = Antispam_Bee::$defaults['reasons']; /* Empty values? */ if ( empty($spam_reason) OR empty($spam_reasons[$spam_reason]) ) { return; } /* Escape & Print */ echo esc_html__( $spam_reasons[$spam_reason], 'antispam_bee' ); } /** * Print CSS for the plugin column * * @since 2.6.1 * @change 2.6.1 */ public static function print_column_styles() { ?>