Function Reference: geodir_rating_disabled_post_types

Summary

Get the CPT that disabled review stars.

Parameters

$post_type
(string) (required) WP post type or WP texonomy. Ex: gd_place.

Default: None
$taxonomy
(bool) (required) Whether $post_type is taxonomy or not.

Default: None

Return Values

(bool)
  • True if review star disabled, otherwise false.

Change Log

Since: 1.6.16

Filters

‘geodir_rating_disabled_post_types’ [Line: 2942]

Source File

geodir_rating_disabled_post_types() is located in geodirectory-functions/custom_functions.php [Line: 2932]

Source Code

function geodir_rating_disabled_post_types() {
	$post_types = get_option( 'geodir_disable_rating_cpt' );

	/**
	 * Filter the post types array which have rating disabled.
	 *
	 * @since 1.6.16
	 *
	 * @param array $post_types Array of post types which have rating starts disabled.
	 */
	return apply_filters( 'geodir_rating_disabled_post_types', $post_types );
}