PluginProbe
My WP Customize Admin/Frontend / 1.14
My WP Customize Admin/Frontend v1.14
1.27.4 1.27.3 trunk 1.0 1.1 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.10 1.10.1 1.10.2 1.11 1.12 1.12.1 1.12.2 1.13 1.13.1 1.13.2 1.14 1.15.0 1.16 1.17.0 All 76 releases
my-wp / developer / modules / mywp.developer.module.dev.debugtrace.php

mywp.developer.module.dev.debugtrace.php in My WP Customize Admin/Frontend 1.14, at developer/modules/mywp.developer.module.dev.debugtrace.php

49 lines 910 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 if ( ! defined( 'ABSPATH' ) ) {
4 exit;
5 }
6
7 if( ! class_exists( 'MywpDeveloperAbstractModule' ) ) {
8 return false;
9 }
10
11 if ( ! class_exists( 'MywpDeveloperModuleDebugtrace' ) ) :
12
13 final class MywpDeveloperModuleDebugtrace extends MywpDeveloperAbstractModule {
14
15 static protected $id = 'dev_debugtrace';
16
17 static protected $priority = 1010;
18
19 public static function mywp_debug_renders( $debug_renders ) {
20
21 $debug_renders[ self::$id ] = array(
22 'debug_type' => 'dev',
23 'title' => __( 'Debug Backtrace' , 'my-wp' ),
24 );
25
26 return $debug_renders;
27
28 }
29
30 protected static function mywp_developer_debug() {
31
32 echo 'debug_backtrace() = ';
33
34 print_r( debug_backtrace() );
35
36 }
37
38 protected static function mywp_debug_render() {
39
40 printf( '<textarea readonly="readonly">%s</textarea>' , print_r( debug_backtrace() , true ) );
41
42 }
43
44 }
45
46 MywpDeveloperModuleDebugtrace::init();
47
48 endif;
49