<commit_before><?php
/**
 * The post/page editor tab for channel preferences.
 *
 * @package   Muut
 * @copyright 2014 Muut Inc
 */
global $post;
$tab;

$meta_name = $tab['meta_name'];
$channel_settings = Muut_Post_Utility::getPostOption( $post->ID, 'channel_settings' );
$channel_defaults = muut()->getOption( 'channel_defaults' );

$hide_online = isset( $channel_settings['hide_online'] ) ? $channel_settings['hide_online'] : $channel_defaults['hide_online'];
$disable_uploads = isset( $channel_settings['disable_uploads'] ) ? $channel_settings['disable_uploads'] : $channel_defaults['disable_uploads'];
$channel_path = isset( $channel_settings['channel_path'] ) ? '/' . $channel_settings['channel_path'] : '';

?>
<p>
	<span class="checkbox_row"><input type="checkbox" name="<?php echo $tab['meta_name']; ?>[enabled-tab]" class="muut_enable_<?php echo $tab['name']; ?>" id="muut_enable_tab-<?php echo $tab['name']; ?>" <?php checked( $active_tab, $tab['name'] ); ?> value="1" /><label for="muut_enable_tab-<?php echo $tab['name']; ?>"><?php echo $tab['enable_text']; ?></label></span>
</p>
<div class="enabled_tab_wrapper">
	<p>
		<span class="checkbox_row"><input type="checkbox" name="<?php echo $meta_name; ?>[hide_online]" id="muut_channel_hide_online" value="1" <?php checked( $hide_online, '1' ); ?> /><label for="muut_channel_hide_online"><?php _e( 'Hide online users', 'muut' ); ?></label></span>
		<span class="checkbox_row"><input type="checkbox" name="<?php echo $meta_name; ?>[disable_uploads]" id="muut_channel_disable_uploads" value="1" <?php checked( $disable_uploads, '1' ); ?> /><label for="muut_channel_disable_uploads"><?php _e( 'Disable image uploads', 'muut' ); ?></label></span>
	</p>
	<p>
		<label for="muut_channel_channel_path" class="text-input-label"><?php _e( 'Channel Path', 'muut' ); ?></label>
		<input type="text" name="<?php echo $meta_name; ?>[channel_path]" id="muut_channel_channel_path" value="<?php echo $channel_path; ?>" placeholder="<?php printf( __( '%sdefault%s', 'muut' ), '/(', ')' ); ?>" />
	</p>
</div>
<div class="disabled_tab_wrapper">
	<?php do_action( 'muut_disabled_tab_content', $tab['name'] ); ?>
</div><commit_msg>Added filter to hide the Channel Path field from the channel tab.<commit_after><?php
/**
 * The post/page editor tab for channel preferences.
 *
 * @package   Muut
 * @copyright 2014 Muut Inc
 */
global $post;
$tab;

$meta_name = $tab['meta_name'];
$channel_settings = Muut_Post_Utility::getPostOption( $post->ID, 'channel_settings' );
$channel_defaults = muut()->getOption( 'channel_defaults' );

$hide_online = isset( $channel_settings['hide_online'] ) ? $channel_settings['hide_online'] : $channel_defaults['hide_online'];
$disable_uploads = isset( $channel_settings['disable_uploads'] ) ? $channel_settings['disable_uploads'] : $channel_defaults['disable_uploads'];
$channel_path = isset( $channel_settings['channel_path'] ) ? '/' . $channel_settings['channel_path'] : '';

?>
<p>
	<span class="checkbox_row"><input type="checkbox" name="<?php echo $tab['meta_name']; ?>[enabled-tab]" class="muut_enable_<?php echo $tab['name']; ?>" id="muut_enable_tab-<?php echo $tab['name']; ?>" <?php checked( $active_tab, $tab['name'] ); ?> value="1" /><label for="muut_enable_tab-<?php echo $tab['name']; ?>"><?php echo $tab['enable_text']; ?></label></span>
</p>
<div class="enabled_tab_wrapper">
	<p>
		<span class="checkbox_row"><input type="checkbox" name="<?php echo $meta_name; ?>[hide_online]" id="muut_channel_hide_online" value="1" <?php checked( $hide_online, '1' ); ?> /><label for="muut_channel_hide_online"><?php _e( 'Hide online users', 'muut' ); ?></label></span>
		<span class="checkbox_row"><input type="checkbox" name="<?php echo $meta_name; ?>[disable_uploads]" id="muut_channel_disable_uploads" value="1" <?php checked( $disable_uploads, '1' ); ?> /><label for="muut_channel_disable_uploads"><?php _e( 'Disable image uploads', 'muut' ); ?></label></span>
	</p>
	<?php if ( apply_filters( 'muut_show_channel_tab_channel_path_field', false ) ) { ?>
	<p>
		<label for="muut_channel_channel_path" class="text-input-label"><?php _e( 'Channel Path', 'muut' ); ?></label>
		<input type="text" name="<?php echo $meta_name; ?>[channel_path]" id="muut_channel_channel_path" value="<?php echo $channel_path; ?>" placeholder="<?php printf( __( '%sdefault%s', 'muut' ), '/(', ')' ); ?>" />
	</p>
	<?php } ?>
</div>
<div class="disabled_tab_wrapper">
	<?php do_action( 'muut_disabled_tab_content', $tab['name'] ); ?>
</div>
{'fraction_non_alphanumeric': 0.21673342234089898, 'fraction_numerical': 0.004005340453938585, 'mean_word_length': 7.611111111111111, 'pattern_counts': {'":': 0, '<': 97, '<?xml version=': 0, '>': 101, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7642996', 'n_tokens_mistral': 1540, 'n_tokens_neox': 1533, 'n_words': 308}