• Resolved panther_26

    (@panther_26)


    Is it possible to change the cache time for the feedzy widget? Instead of 1 hour I would like 1 minute. Anything on the backend editor that can be changed to add 1 minute to the drop down option?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor contactashish13

    (@rozroz)

    @panther_26 you can add this code to your theme’s functions.php to accomplish this:

    
    add_filter('feedzy_get_form_elements_filter', function($elements) {
    	$screen = get_current_screen();
    	if ( ! empty( $screen ) && in_array( $screen->id, array( 'widgets', 'customize' ), true ) ) {
    		$elements['section_feed']['elements']['refresh']['opts'] = array_merge( $elements['section_feed']['elements']['refresh']['opts'], array('1_mins'  => array(
    									'label' => '1' . ' ' . __( 'Minute', 'feedzy-rss-feeds' ),
    									'value' => '1_mins',
    								)));
    	}
    	return $elements;
    });
    
    Plugin Contributor contactashish13

    (@rozroz)

    @panther_26 I assume that this is no longer a problem and I’m closing this thread. Please do contact us again if you have more questions.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Changing cache time for widget’ is closed to new replies.