Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Claudio Sanches

    (@claudiosanches)

    This was giving problem and making slow (for those who use many counters) and so I ended up removing.

    But you can do with this:

    function custom_social_count_plus_load() {
    	if ( ! class_exists( 'Social_Count_Plus_Generator' ) ) {
    		return;
    	}
    
    	function custom_social_count_plus_clean_cache() {
    		Social_Count_Plus_Generator::reset_count();
    	}
    
    	add_action( 'save_post', 'custom_social_count_plus_clean_cache' );
    }
    
    add_action( 'plugins_loaded', 'custom_social_count_plus_load', 0 );
    
    Thread Starter 34503895

    (@34503895-1)

    Into which file i should add this function, or which file contains the manual modification (social_count_plus_transient_time)?

    Plugin Author Claudio Sanches

    (@claudiosanches)

    You can create a plugin to do this or the functions.php of your theme.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Howto fetch counter on new post?’ is closed to new replies.