esc_html__( 'Category', 'canvas' ), 'date' => esc_html__( 'Date', 'canvas' ), 'author' => esc_html__( 'Author', 'canvas' ), 'comments' => esc_html__( 'Comments count', 'canvas' ), ); if ( cnvs_post_views_enabled() ) { $allowed['views'] = esc_html__( 'Views', 'canvas' ); } if ( cnvs_powerkit_module_enabled( 'reading_time' ) ) { $allowed['reading_time'] = esc_html__( 'Reading time', 'canvas' ); } $allowed = apply_filters( 'canvas_allowed_post_meta', $allowed ); // Computes the difference of arrays. $allowed = array_diff_key( $allowed, array_flip( (array) $exclude ) ); // If compact. if ( $compact ) { return array_keys( $allowed ); } return $allowed; } } if ( ! function_exists( 'cnvs_block_post_meta' ) ) { /** * Block Post Meta * * A wrapper function that returns all post meta types either * in an ordered list