esc_html__( 'Category', 'powerkit' ), 'date' => esc_html__( 'Date', 'powerkit' ), 'author' => esc_html__( 'Author', 'powerkit' ), 'comments' => esc_html__( 'Comments count', 'powerkit' ), ); if ( powerkit_post_views_enabled() ) { $allowed['views'] = esc_html__( 'Views', 'powerkit' ); } if ( powerkit_module_enabled( 'reading_time' ) ) { $allowed['reading_time'] = esc_html__( 'Reading time', 'powerkit' ); } $allowed = apply_filters( 'powerkit_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( 'powerkit_block_post_meta' ) ) { /** * Block Post Meta * * A wrapper function that returns all post meta types either * in an ordered list