Support » Plugin: WP Content Scheduler With Range » Add filterhook to render date

  • Resolved Apprique

    (@apprique)



    Would it be possible to add a filterhook to the contractDateBegin and contractDateEnd? I want to make it show the occasional content on a daily basis, instead of for a date range.

    I now changed lines 24-25 of occasional-contents.php to the following:

    	$contractDateBegin 	=	apply_filters(CED_WCSWR_PREFIX . '_contract_date_begin', DateTime::createFromFormat ( 'Y/m/d h:i A', $occasional_contents_date_from ));
    	$contractDateEnd 	=	apply_filters(CED_WCSWR_PREFIX . '_contract_date_end', DateTime::createFromFormat ( 'Y/m/d h:i A', $occasional_contents_date_to ));
Viewing 5 replies - 1 through 5 (of 5 total)
  • The plugin has many action hooks, which I like, because it makes things customizable via code. However, a filterhook on the contractDateBegin and contractDateEnd for Occasional content are missing.

    Instead of showing occasional content once or during a fixed period, I’d like an option to show it daily. I can do that myself via a filterhook on the contractDateBegin and contractDateEnd. But it would be even nicer of the admin ui offers an option to choose days of the week.

    What would also be a great addition is multiple occasional content blocks, each with their own conditions.

    Plugin Author cedcommerce

    (@cedcommerce)

    Hello apprique,

    Thanks for your suggestion. We are about to release a new update of this plugin with this feature.

    So you may update your plugin and let us know if it is working fine.

    Thanks and Regards
    CedCommerce

    Fantastic!

    One more question: if I don’t want to show the content at the top or bottom, is there a shortcode I can use to show it in any arbitrary location on a page?

    Plugin Author cedcommerce

    (@cedcommerce)

    Hello,

    Thank you for opting WP Content Scheduler With Range.

    We have launched latest version – 1.0.6 and in this version there is a shortcode feature available.

    We suggest you to please refer this documentation http://demo.cedcommerce.com/wordpress/content-scheduler/doc/index.html and we hope this will solve your issue.

    Good Day !

    Best Regards
    CedCommerce

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Add filterhook to render date’ is closed to new replies.