Skip to content

Commit

Permalink
attempt adding custom parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
miriamgoldman committed Sep 6, 2024
1 parent ec5665e commit e19a404
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wp-content/themes/twentytwentyfour/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,11 @@ function log_rewrite_rules() {
global $pagenow;
if ( 'options-permalink.php' === $pagenow ) :
if ( isset( $_GET['settings-updated'] ) ) :
newrelic_add_custom_parameter('permalink_flush_method', 'Admin Dashboard' );
newrelic_record_custom_event("PermalinkFlush", array( "method"=>"admin" ) );
endif;
else :
newrelic_add_custom_parameter('permalink_flush_method', 'Via PHP code - flush_rewrite_rules' );
newrelic_record_custom_event("PermalinkFlush", array( "method"=>"code" ) );
endif;
}
Expand Down

0 comments on commit e19a404

Please sign in to comment.