<commit_before><?php
   /*
   Plugin Name: SG Campus stuff
   Plugin URI: http://sgcampus.com.mx
   Description: Plugin for SG Campus specific stuff
   Version: 0.10
   Author: <NAME>
   Author URI: http://sg.com.mx
   License: MIT
   */

add_action( 'init', 'create_post_type' );

function create_post_type() {
	register_post_type( 'webinar',
		array(
			'labels' => array(
				'name' => __( 'Webinars' ),
				'singular_name' => __( 'Webinar' )
			),
		'public' => true,
		'has_archive' => true,
		'taxonomies' => array( 'category', 'post_tag' ),
		)
	);
	register_taxonomy_for_object_type( 'category', 'webinar' );
	register_taxonomy_for_object_type( 'post_tag', 'webinar' );
}

add_action( 'pre_get_posts', 'add_my_post_types_to_query' );

function add_my_post_types_to_query( $query ) {
	if ( is_home() && $query->is_main_query() )
			$query->set( 'post_type', array( 'post', 'page', 'webinar' ) );
	if ( ! is_admin() && ! is_home() && $query->is_main_query() )
			$query->set( 'post_type', array( 'post', 'page', 'webinar' ) );
	return $query;
}

?><commit_msg>Added webinars to query<commit_after><?php
   /*
   Plugin Name: SG Campus stuff
   Plugin URI: http://sgcampus.com.mx
   Description: Plugin for SG Campus specific stuff
   Version: 0.10
   Author: <NAME>
   Author URI: http://sg.com.mx
   License: MIT
   */

add_action( 'init', 'create_post_type' );

function create_post_type() {
	register_post_type( 'webinar',
		array(
			'labels' => array(
				'name' => __( 'Webinars' ),
				'singular_name' => __( 'Webinar' )
			),
		'public' => true,
		'has_archive' => true,
		'taxonomies' => array( 'category', 'post_tag' ),
		)
	);
	register_taxonomy_for_object_type( 'category', 'webinar' );
	register_taxonomy_for_object_type( 'post_tag', 'webinar' );
}

add_action( 'pre_get_posts', 'add_my_post_types_to_query' );

function add_my_post_types_to_query( $query ) {
	if ( is_home() && $query->is_main_query() )
			$query->set( 'post_type', array( 'post', 'webinar' ) );
	return $query;
}

?>
{'fraction_non_alphanumeric': 0.17415169660678642, 'fraction_numerical': 0.0029940119760479044, 'mean_word_length': 4.234986945169712, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 25, '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': '4375109', 'n_tokens_mistral': 811, 'n_tokens_neox': 773, 'n_words': 152}