private static function is_rewrite_supported_by( $post_type ) {
		$post_type_object = get_post_type_object( $post_type );
		if ( false === $post_type_object->rewrite ) {
			$support = false;
		} else {
			$support = true;
		}

		/**
		 * Filters support CPTP for custom post type.
		 *
		 * @since 3.2.0
		 *
		 * @param bool $support support CPTP.
		 */
		$support = apply_filters( "CPTP_is_rewrite_supported_by_${post_type}", $support );

		/**
		 * Filters support CPTP for custom post type.
		 *
		 * @since 3.2.0
		 *
		 * @param bool $support support CPTP.
		 * @param string $post_type post type name.
		 */
		return apply_filters( 'CPTP_is_rewrite_supported', $support, $post_type );
	}
private static function is_rewrite_supported_by( $post_type ) {
		$post_type_object = get_post_type_object( $post_type );
		if ( false === $post_type_object->rewrite ) {
			$support = false;
		} else {
			$support = true;
		}

		/**
		 * Filters support CPTP for custom post type.
		 *
		 * @since 3.2.0
		 *
		 * @param bool $support support CPTP.
		 */
		$support = apply_filters( "CPTP_is_rewrite_supported_by_${post_type}", $support );

		/**
		 * Filters support CPTP for custom post type.
		 *
		 * @since 3.2.0
		 *
		 * @param bool $support support CPTP.
		 * @param string $post_type post type name.
		 */
		return apply_filters( 'CPTP_is_rewrite_supported', $support, $post_type );
	}
private static function is_rewrite_supported_by ( $ post_type ) { $ post_type_object = get_post_type_object ( $ post_type ) ; if ( false === $ post_type_object -> rewrite ) { $ support = false ; } else { $ support = true ; } /**
		 * Filters support CPTP for custom post type.
		 *
		 * @since 3.2.0
		 *
		 * @param bool $support support CPTP.
		 */ $ support = apply_filters ( "CPTP_is_rewrite_supported_by_${post_type}" , $ support ) ; /**
		 * Filters support CPTP for custom post type.
		 *
		 * @since 3.2.0
		 *
		 * @param bool $support support CPTP.
		 * @param string $post_type post type name.
		 */ return apply_filters ( 'CPTP_is_rewrite_supported' , $ support , $ post_type ) ; }
Check post type support rewrite.

@param string $post_type post_type name.

@return bool
Check post type support rewrite .