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 can I call a function from one plugin within another plugin?
- How to tell if Jetpack’s Photon is active?
- How can I modify the Capability needed to access a plugin’s options?
- Open Source plugin and requires licence
- How to delete the Hello Dolly plugin automatically?
- Fatal error: Call to undefined function wp_get_current_user()
- What is the purpose of the “Hello Dolly” plugin?
- Delete option doesn’t appear for plugins
- How can I include a setting that has a variable number of values in a settings page using register_setting?
- How to use WP-FirePHP extension?
- WP plugin updates
- change plugin shortcode function [closed]
- How can I retrieve data within my widget
- woocomerce variations [closed]
- How to use load_plugin_textdomain from within a theme
- Yoast SEO blocking/re-initialising longer running process
- template_redirect not being called when using ajax
- Syntax Highlighting Plugins and 3.2.1
- Problem Building a Simple Google Maps Plugin
- Is there a way to alter the order in which the plugins appear in the page?
- Display content from custom post type if match to main post category
- woocommerce_order_status_completed action hook not working [closed]
- How to update billing_email when user_email is updated [closed]
- Plugin Using get_the_content Causing Issues With Tag
- Gallery plugin forces itself above text
- How to generate CSS from a shortcode within a plugin
- Multisite custom user activation emails – html
- WordPress category add image field
- Change plugin main file name (that is currently in the repo)
- What is the correct way to update both WP/plugins/themes without breaking the site?
- How to read individual user’s directory and display content to that specific user?
- Woocommerce Payments and App Not Syncing
- Query all customers/users and check for duplicate information
- WordPress function not being called from jQuery method
- WordPress wp-admin/network/plugin-install
- How to pull email and name from Flamingo plugin
- how to access all user dashboard on fronted page [closed]
- Can’t delete the two native plugins of WordPress
- Configuring Propel to Work with Multisite
- How I can internationalize variables within the function _e () __ (), etc?
- Malware installation during plugin update?
- Plugin init hook fires repeatedly
- Is there any hook for theme activation ? or something similar?
- Insert Array in Plugin Database
- Checking if a woocommerce attribute is set
- after wordpress update to 3.5+ i get many errors in plugin wpdb::prepare()
- Add Content to Content()
- plugin wraps the entire content
- Shortcode Attributes to Return different $_POST
- How do I change where a plugin pulls updates from?
- Remove value from array within post meta ajax admin
- how get curent URL slug from archive page [closed]
- WordPress custom post type image in RSS
- WordPress function to add text warning on every pages [closed]
- How programatically cause uploads folder to be created?
- Blocking Plugin Css to load custom in template directory
- How to append new form elements in “Add New” form of Users in WordPress admin panel?
- Settings options not showing up on Sub Menu page in WordPress plugin
- Using Amazon Book Gallery Plugins in WordPress [closed]
- How can I create custom in-post templates?
- unregister a sidebar widget
- Could add_query_arg() redirect user to external site?
- Plugins to generate reflinks in WordPress
- How to make if statement in react plugin?
- How to add label/badge on bookable product based on their booking status
- Does anyone know why my SEO and title become one?
- save_post hook partly firing in update post
- Wp-cron.php firing too many times , even disabled in wordpress wp-config.php,
- Help to create function that changes name in the certificate of the sensei lms
- Get Shortcode output to database for static post_content
- After migrating with duplicator all scripts are still tied to old CDN
- How to prevent redoing get_posts queries and make results available to other scripts?
- strtotime not working
- Prefix WordPress Taxonomy Tags With Hashtag Symbol Like Twitter
- WP Job Manager Feature jobs from [job_dashboard] page [closed]
- Optimized PHP & WordPress settings for speed/performance?
- Speeding up WordPress on a Local Network
- how change my menu on submenu
- Using slightly modified widget
- Alter add_meta_box
- How to add a meaningful link in plugin admin panel?
- WP internationalization not loaded
- How to set up php,javascript and css to allow for our finished product to be displayed within a page?
- jQuery loaded in wrong order for non-admin page views only
- Adding custom cron_schedule prior to wp_schedule_event
- Create plugin with form in post and submit it to specific form
- Capturing POST data
- WP-PostRatings – how to make rating show up?
- Making plugin to use different table prefix cause permission problem
- wordpress Search function is not working
- Auto play audio using WP Maintenance Mode Plugin [closed]
- Plugin to allow for recurrent subscription + exclusive content
- How to automatically convert “normal” conditions to yoda conditions
- Woocommerce Large Variations Shows Out of Stock Items [closed]
- Plugin LDAP Authentication 2 In stallation ploblem
- woocommerce how to get cat id in content-product.php
- How to use WP-reCAPTCHA on a form
- How to code a wordpress page properly? Dashboard or unique Theme files or alternative?
- wp_handle_upload – specified file failed upload test
- Split Million WordPress Post’s Into Multiple Database Server