function check_post_input_varsdd( $postId, $post, $update ) { if ( $post->post_type === 'sp_easy_accordion' && 4551 === $postId ) { // Get the exact number of input variables in $_POST $input_count = count( $_POST, COUNT_RECURSIVE ) - count( $_POST ); echo( '<pre>' ); var_dump( 'input_count' . $input_count ); echo( '</pre>' ); die; } } //add_action( 'save_post', 'check_post_input_varsdd', 99, 3 );
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter