function wpi_test_messages() { # Test custom messages $array = array( 'foo' => 'one', 'bar' => array( 'foo' => 'two', 'bar' => 'three' ) ); #wpi_set_auto_expand(true); wpi_add_message('test error: '.PHP_EOL.wpi_dump($array).wpi_dump($array).wpi_dump($array).wpi_dump($array), 'error'); wpi_add_message('test warning', 'warning'); wpi_add_message('test notice', 'notice', true); // set notice & auto expand }
public function dump() { global $wp_query; wpi_dump($wp_query); die; }
function wpi_filter_debug() { $arr = array(); // filter: stylesheet $arr[] = get_stylesheet(); // filter: stylesheet_directory $arr[] = get_stylesheet_directory(); // filter: stylesheet_uri ($stylesheet_uri,$stylesheet_dir_uri) $arr[] = get_stylesheet_uri(); // filter: stylesheet_directory_uri $arr[] = get_stylesheet_directory_uri(); wpi_dump($arr); exit; }
/** * Wpi::debug() * * @return */ public function debug() { wpi_dump($this); }