Title: do_filter ???
Last modified: January 13, 2022

---

# do_filter ???

 *  Resolved [kirill80](https://wordpress.org/support/users/kirill80/)
 * (@kirill80)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/do_filter-2/)
 * Fatal error: Uncaught Error: Call to undefined function do_filter() in /wp-content/
   plugins/wc-fields-factory/includes/wcff-builder.php:1442 Stack trace: #0
 * do_filter ?????????

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

 *  Plugin Author [Saravana Kumar K](https://wordpress.org/support/users/mycholan/)
 * (@mycholan)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/do_filter-2/#post-15249271)
 * `do_filter` :), that can’t be right.
 * If it is then it is an embarrassing bug.
    Not sure how it passed, will release
   an update shortly.
 *  Plugin Author [Saravana Kumar K](https://wordpress.org/support/users/mycholan/)
 * (@mycholan)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/do_filter-2/#post-15249672)
 * For now pls use the dirty fix.
 * `WP_PLUGIN_DIR/wc-fields-factory/includes/wcff-builder.php`
 * Replace the `if`condition block (LN : 1441) with the following.
 *     ```
       if (has_filter('wccpf_before_field_rendering') && has_filter('wccpf_after_field_rendering')) {
           $before = apply_filters('wccpf_before_field_rendering', $_meta);
           $after = apply_filters('wccpf_after_field_rendering', $_meta);
           $html = $before . $_html . $after;
       }
       ```
   
 * I will make sure the fix will get into the sub sequent releases.
    -  This reply was modified 4 years, 4 months ago by [Saravana Kumar K](https://wordpress.org/support/users/mycholan/).
 *  Thread Starter [kirill80](https://wordpress.org/support/users/kirill80/)
 * (@kirill80)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/do_filter-2/#post-15249680)
 * ок
 *  Plugin Author [Saravana Kumar K](https://wordpress.org/support/users/mycholan/)
 * (@mycholan)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/do_filter-2/#post-15300693)
 * Yesterday I did a silent update for including intro video, with that I have released
   the fix as well.

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

The topic ‘do_filter ???’ is closed to new replies.

 * ![](https://ps.w.org/wc-fields-factory/assets/icon-128x128.jpg?rev=2738843)
 * [WC Fields Factory](https://wordpress.org/plugins/wc-fields-factory/)
 * [Support Threads](https://wordpress.org/support/plugin/wc-fields-factory/)
 * [Active Topics](https://wordpress.org/support/plugin/wc-fields-factory/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wc-fields-factory/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wc-fields-factory/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Saravana Kumar K](https://wordpress.org/support/users/mycholan/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/do_filter-2/#post-15300693)
 * Status: resolved