This commit is contained in:
2026-10-12 20:35:25 -06:00
parent bef9999f6a
commit 225515570a
963 changed files with 273176 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
<?php
defined( 'ABSPATH' ) || exit;
if ( class_exists( 'BhittaniPlugin_kkStarRatings' ) ) :
/**
* Conflict with kk Star Ratings: Clear the cache when a post gets rated.
*
* @since 2.5.3
*
* @param int $post_id Post ID.
*/
function rocket_clear_cache_on_kksr_rate( $post_id ) {
rocket_clean_post( $post_id );
}
add_action( 'kksr_rate', 'rocket_clear_cache_on_kksr_rate' );
endif;
+18
View File
@@ -0,0 +1,18 @@
<?php
defined( 'ABSPATH' ) || exit;
if ( defined( 'WP_POSTRATINGS_VERSION' ) ) :
/**
* Conflict with WP-PostRatings: Clear the cache when a post gets rated.
*
* @since 2.6.6
*
* @param int $user_id user ID.
* @param int $post_id post ID.
*/
function rocket_clear_cache_on_wp_postratings_rate( $user_id, $post_id ) {
rocket_clean_post( $post_id );
}
add_action( 'rate_post', 'rocket_clear_cache_on_wp_postratings_rate', 10, 2 );
endif;