• Resolved katiefanning

    (@katiefanning)


    Would you be able to provide an example for the cbfc_flexible_countdown custom function call that could be used as a starting point to insert into a page template? I am not very strong with the coding part of this. I have looked at the documentation-ref40.pdf with the How to call/use function and I must be missing some part of the code.

    Thank you in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Sabuj Kundu

    (@manchumahara)

    Hi,

    I think the code base changed a lot than the documentation file ! If you check our widget code or shortcode methods it will be easy

    Here is sample code from widget but not copy paste to work, [you will get clue how it works or which function to check]

    $args[‘type’] = $instance[‘cbfc_countdown_style’];
    $args[‘date’] = $instance[‘cbfc_date’];
    $args[‘hour’] = $instance[‘cbfc_hour’];
    $args[‘minute’] = $instance[‘cbfc_min’];

    $args = apply_filters(‘cbxflexiblecountdownwidgetwidget’, $args, $instance);

    echo Codeboxr_Flexible_CountDown::cbfc_get_flexible_countdown($args);

    Plugin Author Sabuj Kundu

    (@manchumahara)

    Closing this ticket

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Example custom function call code’ is closed to new replies.