Not sure what must be causing this. Try replicating your entire filter hook with function in this format:
function filter_handler( $data ) {
// do something with the post data
return $data;
}
add_filter( 'wp_insert_post_data', 'filter_handler', '10', 1);
Let me know if something happens.
Related Posts:
- error_log() output for print_r() appearing on page
- Utilize WP-CLI from inside WordPress, not SSH
- Same log message keeps on printing to debug.log file thousand of times
- How to find error in my code when the error message is pointing to WP core file?
- “Undefined index” error when saving empty array with checkboxes
- File is executed twice if plugin is activating
- How to identify which php file a plugin is using on page load?
- I’m writing my first plugin and my echo output is showing up on every page of my wordpress installation
- Accessing Variables Used In a Plugin Using PHPStorm + XDebug
- When to use Exceptions vs Error Objects vs just plain false/null
- WordPress URL Rewrite not working
- Detect a focus on wp_editor
- simple wordpress ajax plugin not working when not logged in
- Saving metabox repeatable fields
- how to create and show sessions in word press?
- Disable External Pingacks on WordPress Posts and Only Allow ‘Self Pings’
- Loading page template into shortcode
- do not show web page section when using advanced custom fields pro
- How to get all existing post types
- New Plugin Review
- Create custom blocks for bootstrap
- allow users to publish without admin approval
- Query String being Removed Creating a Pagination Issue within a Custom Plugin
- wp_insert_post() is returning the correct post ID, no failure, but the post content does not get updated
- Do my defines need to be unique?
- Preferred Method of debugging a wordpress SQL calls?
- What does $wpdb->get_row return?
- WordPress Scheduled Event Request Blocking
- Delete a WordPress transient from a shortcode on Page/Post update
- Plugin CSS not enqueing
- How to set up VS Code for WP plugin/theme development in 2021? [closed]
- Saving an array of dynamic repeater data as post_meta
- WordPress wpform plugin submit and get multiple checked value from checkbox [closed]
- Improve page speed loading using CDN and async or defer attribute
- Script to browser problem PHP
- Store a default value for a transient on plugin activation
- How wp-cron can run in background if PHP is single threaded?
- wp query foreach deleting record returning only first or last item
- PHP > Scheduled Tasks > Sending daily email with dynamic API variables
- WordPress Custom field Colors
- Is it save to use eval for a jQuery callback method coming from the database?
- Scheduling an event inside plugin class is not working
- How to Change CSS Colors from Custom Plugin Settings Page
- Passing the name of selected color from the custom component to `render_callback`
- Any ideas why I am getting “I’m getting “wp-admin/admin-ajax.php 401 (Unauthorized)”
- Cant register rest routs from class instance
- wordpress frontend editor to add extra css to website
- Custom Registration username_exists / email_exists
- How can I search all plugins for composer’s vendor/autoload.php?
- Action Hook Inside WordPress Plugin Shortcode
- Can I remove or edit an include() from a function with a filter?
- Call to undefined function error in plugin
- How do I make this Metabox show current DB value?
- Submit form to db
- Get category id when SEO URL is turned on
- Add a custom WooCommerce settings tab with sections
- PHP using external anonymous function inside class
- How to extend SelectControl with data from my theme
- Add Pre-Defined Value to Click Counter in WordPress
- var_dump() and print_r() display null in php
- How can i avoid duplicate same post in wp?
- Drop down question
- How do I disable cache for a certain page?
- code that I can run, or a plug in to show what sql tables something pulls information from
- Automatic email message after manual user approval
- custom mailchimp form using HTTP API
- How to override theme’s public static function inside of a trait?
- pass datetime using wp_localize_script to frontend from settings page
- add custom metabox to media library custom widget
- using filter and hook inside class
- Display attached images of a page or post that are insetred using gallery
- overwrite wordpress gallery with custom gallery shortcode
- Enqueue sripts and styles only if function is called
- Add widget area from visual editor
- Register/enqueue scripts only on certain admin pages
- Looping through custom data in a custom table to display all items in a post
- Priority call methods – PHPMailer->addAddress(NULL)
- not able to access $_POST on backend profile update
- Custom Plugin Develoment, Form Action
- WordPress Query Crashes Browser
- How to send logs to plugin owner for a plugin?
- (Xdebug Profiler) Why are there two cachegrind files generated for one page?
- How to Request a User to Register on Landing at a Site, Then Automatically Delete the Users Password on Logout?
- Plugin Modification Change Functionality For Logged User Only
- INCOMING: Wall of code for form and $_POST, not updating custom field’s value
- add shortcode heading showing multiple time
- WP multisite network plugin fails to see classes loaded with spl autoload
- AJAX & PHP | Call a specific PHP function from a PHP file via AJAX?
- What is this mark for “? function()” [closed]
- How to edit the default database of WordPress [closed]
- How to quickly/easily make an analysis (reverse engineering) of WordPress?
- WordPress White Screen Error
- using a shortcode in a hyperlink
- How to automatically convert images to WebP on WordPress?
- Check user last login date
- Transate plugin with js & wp_localize_script
- WP Custom tables query
- Login user into magento using wordpress account
- Customize create table SQL statement in any WordPress plugin
- wp_register_script – illegal string offset