Probably nowhere because it outputs too early. I recommend to use error_log function and turn on WP_DEBUG_LOG.
Just add to the wp-config.php file somewhere in front of this line:
require_once(ABSPATH . 'wp-settings.php');
these new lines:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
Now create in wp-content folder a new file debug.log and set chmod to 640.
And this line in your code:
var_dump($post);
replace with this:
error_log( var_export( $post, true ) );
Now you will find content of the $post variable in the debug.log file.
Related Posts:
- How to Create a shortcode to this php function
- How to change upload dir for custom plugin?
- Trouble with very basic plugin creation
- My single.php page does not show the related data to the post which is clicked
- Creating a CSV with PHP inside the plugin directory
- How to add CSS via custom plugin?
- How to add custom table style for table block in gutenberg editor
- Issues with a WP plugin menu system
- Moving a plugin js to footer
- WordPress Ajax code is not Working
- Is there a plugin for WordPress for creating ‘Accounts’ where all users who belong to that Account can only see Account data? [closed]
- Add a “View all” button on WooCommerce product archives pages
- I am trying to make a field show and save from quickedit screen
- wp_redirect doen’t work
- How do I add an options page at the bottom of the list?
- Hardcoded paths in my plugin
- How to save plugin custom settings page fields
- wp_insert_term() doesnt insert a term
- What goes into wp_postmeta and why?
- Dequeue, Unregister, Remove Action – Not Working on Plugin
- Price comparison table based on Custom Post Type?
- WordPress Update Question
- The “Child Pages Shortcode” plugin, block template
- How do I determine if the user who registered is not spam?
- display unique post per category
- “After file loaded” action
- Add_image_size not generating correct size
- navigation among single posts
- Is there a way to insert multiple images into a post at the same time without using a gallery?
- How to get a custom page through plugin?
- Filters on the_content with plugins, pages and shortcode
- Plugin to send messages to members/lists but not full-blown newsletters
- Plugin access and Roles
- How to create a plugin page that shows XML?
- Plugin prevents code from working
- Determining Whether Automatic Upgrade will Fail?
- How to make WooCommerce payment method field optional?
- can’t install any wp plugins [duplicate]
- Show an admin menu item in Editor role
- Custom Post Type same name as Category
- how to display recent post by category on home page
- Add Plugin broken after removing Booster for Woocommerce
- WP_CONTENT_DIR disables plugin directory
- WordPress Custom Hook with Class method
- How to display the custom post related blog by category?
- Overriding inline !important CSS with Javscript code snippet with media query
- WP Forms not displaying,becomming an fatal error
- Undefined index: custom_post_template_present
- Ensure WordPress Theme Uninstalls Completely
- Image path in childs theme
- Using foreach loop for `$instance` of form and update array widget iteration
- Disqus comment system not show
- Accessing data from Google Cloud Datastore in WordPress site
- Login issue in WordPress
- Mobile and Tablet responsive in Elementor but not on the actual site?
- WordPress backend post update without refresh
- Warning: sprintf(): Too few arguments in nav-menu-template.php
- how to insert thousands of posts faster?
- Redeclare a plugins function/class in my theme?
- RSS icons have the same Alt tag. Lighthouse is failing these elements. How do I display different alt tags for each icon?
- Coupon Codes for product discount combined with conditional free shipping
- Avoid enormous network payloads
- Page takes on two different formats
- Cant visualize protected password portfolio elements
- How to create multiple pages for PDFs
- How to fix slow comment query?
- How to create a custom control in customizer
- How to Call Function From Separate WordPress Install on Same Server?
- wp meta_query meta_value compare =REGEXP delimited by space
- Sending post data over REST API, how to parse shortcodes in post_content?
- Primary Menu doesn’t show because of w3 cache
- How to echo a plugin’s function into a template?
- How to insert variable which contain array value in wp_options table?
- How to assign plugin to top level menu?
- Login redirect to dynami url – currently using Peter’s Login Redirect
- Wp Ecommerce Reposition Product Page Product Thumbnail Image
- It possible to implement an adhoc php web application with wordpress?
- Multiple Accounts on 1 email – Multisite
- Array to string conversion error when trying to POST multidimensional array
- How to test a WordPress plugin on a single post?
- Excluding CPT generated by a plugin from the loop
- WordPress Permission Problems on Ubuntu 12.04 with LAMP stack
- How to Overwrite validate_plugin function
- Plugin and javascript placement
- Why are only inactive plugins showing?
- Disable plugin function
- Form data to wordpress DB
- Is it possible to send user new password after they clicking on forgot password in word press
- Register additional wp plugin directory
- How to prevent page load on form submission
- how to add “alt” for all image in wordpress
- How to display blog posts only authored by the administrator
- Send email notification when meet the condition
- How to validate password length in wordpress
- how to show the data from a myqsl database in a post [closed]
- URL Redirect on GoDaddy platform [closed]
- Cannot edit Sidebar in any theme in wordpress
- how to update wordpress plugin programmatically using plugin path
- How to get all scripts and styles from the header. Including those added by plugins?
- How to add links to different language versions of WordPress