Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //Debug
- add_action ( 'wph/settings_reset', '_debug_wph_settings_reset' );
- function _debug_wph_settings_reset()
- {
- global $wph;
- $wph->functions->log_save( '-------------------------------' );
- $wph->functions->log_save( date("Y-m-d H:i:s") );
- $wph->functions->log_save( 'Action wph/settings_reset' );
- if ( function_exists( 'get_current_user_id' ) )
- $wph->functions->log_save( "Username " . get_current_user_id() );
- $wph->functions->log_save( "Callstack" );
- $wph->functions->log_save( print_r( debug_backtrace( DEBUG_BACKTRACE_IGNORE_ARGS ), TRUE ) );
- $wph->functions->log_save( "GET" );
- $wph->functions->log_save( print_r( $_GET, TRUE ) );
- $wph->functions->log_save( "POST" );
- $wph->functions->log_save( print_r( $_POST, TRUE ) );
- }
- add_action ( 'wph/do_recovery', '_debug_wph_do_recovery' );
- function _debug_wph_do_recovery()
- {
- global $wph;
- $wph->functions->log_save( '-------------------------------' );
- $wph->functions->log_save( date("Y-m-d H:i:s") );
- $wph->functions->log_save( 'Action wph/do_recovery' );
- if ( function_exists( 'get_current_user_id' ) )
- $wph->functions->log_save( "Username " . get_current_user_id() );
- $wph->functions->log_save( "Callstack" );
- $wph->functions->log_save( print_r( debug_backtrace( DEBUG_BACKTRACE_IGNORE_ARGS ), TRUE ) );
- $wph->functions->log_save( "GET" );
- $wph->functions->log_save( print_r( $_GET, TRUE ) );
- $wph->functions->log_save( "POST" );
- $wph->functions->log_save( print_r( $_POST, TRUE ) );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement