First of all I would recommend you to rename your function to wpPartSanitize_settings
, because this function doesn’t validate anything. As it doesn’t validate anything, then you aren’t able to “inform” administrator that one input is invalid.
Nevertheless, to create your hook for wpPartValidate_settings
filter, just do it like this:
add_filter( 'wpPartValidate_settings', 'wpse8170_sanitize_settings', 10, 2 );
function wpse8170_sanitize_settings( $output, $input ) {
// ...
return $output;
}
Related Posts:
- Difference Between Filter and Action Hooks?
- How to create an API for my plugin?
- How to add sub-menu to a menu generated by wp_nav_menu by using plugin
- How to validate custom fields in custom post type?
- How should one implement add_settings_error on custom menu pages?
- How to properly validate data from $_GET or $_REQUEST using WordPress functions?
- Using query_vars filter
- Explanation of the “posts_join” and “posts_fields” filter hooks?
- How do you use the plugin boilerplate loader class to hook actions and filters?
- add_filter OO with parameters
- How Can I Add a Filter to Class Instance Only?
- Is it possible to remove next-post / previous-post with out creating a custom template?
- How do I Make a Theme “plugin-ready”?
- function triggered by “manage_users_custom_column” filter not working
- Proper way to use apply_filters() with class functions?
- add_filter and remove_filter added before and after wp_query
- How to modify post content before writing to database?
- Actions or filters fired when data is saved in a custom table
- Some nav-menu filters do nothing
- Determine which theme location a wp_get_nav_menu_items is for
- Display only certain posts based on visitor’s country?
- What’s the difference between hooks, filters and actions? [duplicate]
- How to use filter hook ‘post_updated_messages’ in coherence with action hook ‘save_post’
- Conditional add_filter?
- stray elements
- Is it possible to create an action hook using do_action() within add_action()?
- Calling apply_filters on non-documented hooks
- WordPress Media mime type filter problem 4.0
- How to allow Unfiltered HTML in a wordpress multisite install
- How to add custom content under plugin row in WordPress admin plugin list?
- Is there a way to verified if an add_filter is already applied?
- Define a function outside a class and call the function using action or filter hook
- Does add_filter work outside functions.php
- Synchronize Custom post type tags to WordPress default posts tags
- multiple functions with same filter
- Woocommerce – Hide a Column in Cart Table
- Verify Nonce returns false – Request Nonce returns correct value
- add_filter : Passing an array instead of the callback function?
- How do i validate data entered in a meta box so that only floats can be entered in a field?
- Namespaced action and filter tags
- Two functions utilizing registration_errors filter
- Is there a Filter that I can use to filter the tags before they are inserted in to the database?
- WordPress is automatically linking plain text email addresses
- get_current_screen() return null
- Problems with: manage_${post_type}_posts_columns
- How To Change Logout Screen Title
- Add code inside specific wordpress standard function
- Multiple options pages validation for a plugin
- Why doesn’t my simple the_title filter get applied?
- How to filter the_content() & include content from template
- Prefixing plugin hooks (actions/filters) with a wrapper class or functions
- Replace youtube embed in wordpress
- Can’t get woocommerce_get_price_html to work [closed]
- Search and Filter
- How can I replace content in the WP Admin area before an admin page is rendered?
- Prevent invalid or empty values from being saved to the database and retain the form field values upon error
- How to filter content for specific content variable
- WordPress custom taxonomy check box to dropdown
- Valid filenames for add_action’s first parameter
- How do I access the menus produced by Dashboard > Appearance > Menus
- How to get all queries’s results after they have executed?
- How to get the post excerpt using post object?
- Remove an action by extending class and replacing it
- Bind a function with its own argument to show something dynamically after every content
- Hook add_attachment error
- WooCommerce change Tax Class programmatically when Recalculating an existing Order [closed]
- Update variable value via add_filter
- Make wordpress join default user metas with a column from another table while displaying the wp_users table on the users screen
- Configure WordPress to Generate Scheme-less Relative URLs
- Gravity Forms Anchor only on Front Page?
- How to find list of all functions bind to a particular hook from my plugin?
- WP_NAV_MENU filter targets all menus
- Adding filter to the title without affecting the menu title
- How do i remove the title from a specific page
- Can / should a widget plugin define its own Widget Area?
- How to get changed post title in my custom plug-in which fires when ‘save_post’ is called?
- Is there an action_filter hook to add content before the post title?
- Adding tables to dashboard pages programmatically?
- Can I attach a plugin via my add_filter callback contents?
- apply_filters() and call_user_func() to define and call a function outside a class
- add_filter postbox_classes multiple post types
- Override category archive page title (not the head title)
- Override woocommerce loop-start.php from theme using plugin?
- how to add security questions on wp-registration page and validate it
- WordPress Plugin Boilerplate – add actions and/or filters based on user’s role
- WordPress Reset password Strength set to medium
- Change Front page displays settings conditionally when user is online
- login_message filter not working
- Add_action not calling callback function
- I have a plugin where in I have to change the title of the page dynamically by sending parameter to the_title filter
- WordPress Dropdown image select
- get_comment_meta() for a filter hook in a plugin
- Custom signature appears twice on page
- Caption Shortcode: what filter to change the image size?
- Hook for plugin to show content for certain urls
- WordPress permalink setting
- How do I replace title with my plugin?
- wp_mail_from not changing from address
- append code after the_content not working
- Do Not Back Up? Is there any accepted way to tell backup and clone plugins to skip a certain file? [closed]