0 ) { // add every plugin that loads before PHP Console Log to $plugin_list array for ( $i = 0; $i < $key; $i++ ) { $plugin_list[] = $plugins[$i]; } } // set default response // $return_html = '

None. PHP Console Log loads first.

'; $return_html = '

' . esc_html__( 'None.', 'php-console-log' ) . ' PHP Console Log ' . esc_html__( 'loads first.', 'php-console-log' ) . '

'; // build HTML ordered list of all plugins that load before PHP Console Log if ( count( $plugin_list ) ) { $return_html = '
    '; foreach ( $plugin_list as $this_key => $plugin_path ) { // return PHP_CONSOLE_LOG_WP_PLUGIN_DIR_PATH . $plugin_path; $this_plugin_data = get_plugin_data( PHP_CONSOLE_LOG_WP_PLUGIN_DIR_PATH . $plugin_path, false, true ); $return_html .= '
  1. ' . $this_plugin_data['Name'] . '
  2. '; } $return_html .= '
'; } echo $return_html; // printf( esc_html__( '%s', 'php-console-log' ), $return_html ); } /** * @func php_console_log_page_help() * * Build and output help page. * * @since 1.0.0 * */ function php_console_log_page_help() { // Double check user capabilities if ( !current_user_can( 'manage_options' ) ) { return; } ?>

do_action( 'php_console_log', '' );

do_action( 'php_console_log', '' ); do_action( 'php_console_log', '' );

$my_string = 'My String'; do_action( 'php_console_log', $my_string );

$my_array = array( 'elm 1', 'elm 2', ); do_action( 'php_console_log', $my_array );

$my_array = array( 'key 1'=>'elm 1', 'key 2'=>'elm 2', ); do_action( 'php_console_log', $my_array);

$my_array = array( 'My String 1', 'My String 2', array( 'elm 1', 'elm 2', ), 'My String 3', array( 'key 1'=>'elm 1', 'key 2'=>'elm 2', 'key 3' => array( 'key 3a' => 'elm 3a', 'key 3b' => 'elm 3b', ), ), 'My String 4' ); do_action( 'php_console_log', $my_array);






  1. do_action( 'php_console_log', '' );


    do_action( 'php_console_log', '' ); add_action( 'init', 'my_function' ); do_action( 'php_console_log', '' );


  2. define( 'WP_DEBUG', true );