If you look at the codex entry for add_filter
, you’ll see there are 4 arguments for the function, the last being $accepted_args
, which should be an integer. Your add_filter
calls are not correct, so I’m not sure how they worked in the first place.
There appear to be 5 arguments in your hooked function, so I presume your add_filter
s should be:
add_filter('gform_pre_submission_2', 'create_company_full_name', 10, 5);
add_filter('gform_pre_submission_1', 'create_company_full_name', 10, 5);
add_filter('gform_pre_submission_26', 'create_company_full_name', 10, 5);
That said, filters typically return
a value, which your doesn’t, so I can’t say that’s correct either, as I don’t know Gravity Forms at all.
also see Debugging in WordPress.
Related Posts:
- Shortcodes — Using add_action, add_filter in the shortcode
- How to remove medium size class in gravity form for input tag?
- WooCommerce Custom Product Validation [closed]
- need correction with a snippet in functions.php [closed]
- Changing WooCommerce Display Price Based on User Role & Category [closed]
- Not able to change wp_title using add_filter
- How to hook a filter to catch get_post_meta when alternate a custom field output?
- Changing JPEG compression depending on image size
- How to add headers to outgoing email?
- Advanced Custom Fields and Yoast SEO keyword analysis [closed]
- Insert Custom HTML After Shortcode
- Is there a way to add another row to the tinyMCE kitchen sink toggle?
- Remove description from on Home
- What do add_filters() and apply_filter() do?
- add_filter to youtube embeds?
- How can I detect if a user changes their password?
- SSL certificate for the host could not be verified
- Store source permalink on XMLRPC calls
- What to use instead of the content_save_pre filter?
- How to limit the pages displayed for choosing parent page on page attribute’s menu?
- Restrict filter to run only inside specific function
- How to add a custom filter in functions.php
- Setting title using wp_title filter
- 4.0 remove_filter for WordPress core function not working for me
- How do I add a current class to the current post?
- How apply_filters work in WordPress?
- Apply a filter only once
- option_active_plugins filter not working
- How do we check if the user is logging in or registering?
- add_filter return value
- Add a header before fields added with the attachment_fields_to_edit() filter
- Are there Limitations on filter handles?
- Hide content editor for posts after approriate date
- Why my admin doesn’t work after adding rest_prepare_post filter?
- Buddypress: Edit activity when new blog post [closed]
- Same Conditionals Not Working on Two Different Hooks
- remove_action in plugin file
- How to apply filter at search of woocommerce products?
- Filter get_template_part() $args array
- Modify a Filters Second Parameter
- Variables in post title
- Filtering post-formats from the loop using new WP-Query();
- How to edit dashboard search posts button texts for my CPT?
- Insert term when page is published – avoid duplicates after edits
- How to add a filter to get_the_author_meta?
- When does a function assigned to the content_filtered_edit_pre filter hook fire?
- Capture post content before page renders
- Empty string supplied as input when parsing content
- How can I remove the kses filters when saving a specific post type ? (it breaks my JSON)
- Remove_action does not work
- What different ways can a plugin add a filter to a WordPress site?
- How to pass variables to custom filter from multiple functions
- Make WP not format code, not insert line breaks in between tags
- the_content filter together with require_once returns 1 instead of the content of the included file
- Missing Argument 2 for apply_filter
- How to get a single hook from wp_head()?
- WP filter to alter admin CSS styles?
- Detect when gutenberg editor title is available in Dom after editor load
- How to apply a filter to an ACF wysiwig editor field output?
- Is it possible to bind a function to a filter hook via Ajax?
- Add a filter to an action [closed]
- Change the template when the user is not logged in using page_template filter (it does not work)
- Why template_include filter does not work with WPML plugin?
- Hide Posts In Back-end/Admin Based On User’s (Pseudo) Privileges Controlled by ACF
- Filter Pages by Custom Field (ACF) in admin area
- Filter posts by meta data using custom query
- Remove tags without a specific meta key from “choose from the most used tags”
- Which Filter Do I Use To Modify The Subject Of The Retrieve Password Notification Email?
- Register users by e-mail
- Making an add_filter() call from within an add_filter() call
- automatic title through filter
- Filter causing loss of _wp_attachment_metadata
- Finding actual functions added to hooks and filters
- Buddypress Filter Multiple Activities [closed]
- How to apply filter on get_the_post_thumbnail()
- How can I tranlslate post date in italian?
- How do I check if I can use the allowed_block_types filter?
- Having wp-admin on different domain
- Use a functions in functions.php to remove a string for template theme
- oembed_dataparse filter not running at all for standard YouTube embed
- Action for opening attachment or manipulating all attachment links
- Filter wp_mail based on content type
- Add filter conditionally to a page
- Remove the post_content search from WHERE clause (and CONCAT sql function)
- mu-plugins body_class filter not working
- Conditionally (cpt) filter previous and next_post_link
- Post filter Month dropdown at front-end like wordpress backend
- shortcode function outputs multiple anchor tags
- WP Dashboard -> Posts-> Filter by Category -> Form Method Change : Which Hook
- Show child theme for users on specific IP
- wp.getPosts with status = ‘trash’ using node.js
- Is there a way to overwrite a filter used in canonical.php?
- How do I remove certain HTML elements with specific classes from the feed?
- Adding an orderby filter, casting postmeta with multiple keys
- confusion with add_filter
- post->post_content filter
- How to change this WP logo and posts url in block editor?
- Replacing text using add_filter
- Background color and background image below element in Contact Form 7 – error tip [closed]
- Change password reqts with NO plugin without breaking resetpass link?