After the save_post
hook is executed, the page is redirected, so you’re not able to see the print_r
output.
A simple method, if you can afford it, is to do a wp_die()
just after the print_r
or var_dump
.
Or you can check other debugging methods, like FirePHP.
Related Posts:
- How do I get the current edit page ID in the admin?
- Modify Admin Bar Link
- How to remove row-actions from pages table?
- Is it possible to remove the main rich Text box editor?
- Add admin bar link to edit author
- Replacing select2 in admin backend for all selects
- Can I remove the Rich Text box editor for a specific post?
- How to add a column to the Trash page?
- How to test for Super Admin
- How to select a page within admin?
- Change Admin Bar “Visit Site” URL
- How to Display Frontend CSS for Administrator only
- Hard-coding custom menu elements for menu manager
- How to make custom column Admin>Users sortable?
- Trigger a custom function when option are saved in admin area
- Move ‘current-menu-item’ class on #adminmenu li from Posts to Pages for Taxonomy Edit Screen
- Force to use STRONG users password and implement rule to prevent REUSE [closed]
- Logout Redirect and also WP-login.php Redirect
- what is best way to keep track of changes made in wordpress website? [closed]
- WordPress wraps span tags into p tags
- Creating a custom wordpress widget and stopping js from running twice(once in active widget once in widget selector)?
- Removing WPML Items From the WordPress Admin Bar
- Show metadata in users.php – wordpress
- How to display my comment count in the wordpress admin bar?
- Multisite Admin Roles
- function to return comma separated list of meta values
- Screen Options WordPress WYSIWYG
- Does hooking into the same action multiple times drain memory?
- Apply custom role capabilities to administrator (without plugin)
- Different wp_mail_from and wp_mail_from_name for specific situations
- register_post_type for Pages?
- is_front_page not working in functions.php
- wp_register_script not loading as expected
- Problem with tag
- Simple/basic use of get_current_screen
- How do I redirect upon login a specific user based on role?
- Error message : Call to undefined function request_filesystem_credentials()
- Help extending custom drag-drop page ordering on admin page list screen
- override parent theme configuration in child functions.php
- Search user metadata with checkboxes via ajax (almost working)
- Sanitize slug title
- Do not add content filter on page template
- Create post using Ajax
- Usage of theme name in functions
- Function to update post_meta based on existing post_meta
- Load jquery only for certain pages in the backend
- allow only one post in specific category
- ACF not showing
- Custom styles.css sheet for visual editor
- Use html inside shortcode function
- Publishing just a Facebook URL without full code snippet
- Filter an WordPress Function in (general-template.php)
- Unable to return values from function
- Show some menu sub items as dropdown under a menu item
- Set “woocommerce_is_purchasable” to false for specific “$product->is_stock_status”
- How to remove some item from WordPress Dashboard for user Author
- processing form data with ajax
- Check from functions.php if function exists in footer.php
- How to register a menu based on a ACF condition
- How to convert raw url to hyperlink?
- Split single-review.php to two parts
- Breaking up multiple words and inserting an image after first word
- get content from page through AJAX
- colorbox not loading in
- The work of WordPress Function update_post
- Facebook OpenGraph error, Call to undefined function wp_get_attachment_src()
- how can I change all wordpress media file url to custom cdn url?
- Changing the HTML of notices in WooCommerce [closed]
- Save_post – Warning: Cannot modify header information
- How to use WP conditional tag in a functions.php with OCEANWP Theme?
- How Can I Create a Friendly Slug for a Dynamic Page?
- Modify content inside post before first publish
- Pass an argument into a function to extract from array
- function class doesnt work
- how to remove a tag in the_category function
- Load CSS file conditionally
- my wordpress doesn’t save items to customized widget area
- Remove all video attachment, both files and post/postmeta from database?
- Copying a widget class to functions.php results on a blank page
- save_post doesn’t correctly process function call with php class
- No compression occurs on my jpegs after adding jpeg_quality hook to my functions.php file
- Changing the register url is not working
- Newest comments first not working
- Pass arguments to function class with do_action()
- How to a override parent theme page that has been included with require_once?
- Display most popular posts
- Can I use a function to return HTML and the result of another function?
- Excerpt length: get 2 paragraphs
- Remove heading tags on line break
- Add custom fields after post/page title
- Ajax call does not work for this custom code
- Force resize for all video content
- Sort results by name & asc order on homepage
- Add the title of a widget as an ID – for anchor links
- I want to add the alt attribute to all the photos!
- Creating mixture of shortcodes to use in the visual/text editor
- Correct php syntax to add an image in wp functions.php
- Update post meta with wp cron
- get page_id in ajax to function in functions.php
- How to add user_registered time in human_time_diff() wordpress