LLMS_Post_Types::deregister_sitemap_post_types( WP_Post_Type[] $post_types )

De-register protected post types from wp-sitemap.xml


Parameters Parameters

$post_types

(WP_Post_Type[]) (Required) Array of post types.


Top ↑

Return Return

(WP_Post_Type[])


Top ↑

Source Source

File: includes/class.llms.post-types.php

	public static function deregister_sitemap_post_types( $post_types ) {

		unset(
			$post_types['lesson'],
			$post_types['llms_quiz'],
			$post_types['llms_certificate'],
			$post_types['llms_my_certificate']
		);

		return $post_types;

	}

Top ↑

Changelog Changelog

Changelog
Version Description
4.3.2 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.