diff --git a/includes/reader-revenue/my-account/class-woocommerce-my-account.php b/includes/reader-revenue/my-account/class-woocommerce-my-account.php index 98f579aa60..f30442048f 100644 --- a/includes/reader-revenue/my-account/class-woocommerce-my-account.php +++ b/includes/reader-revenue/my-account/class-woocommerce-my-account.php @@ -449,7 +449,7 @@ public static function verify_saved_account_details() { */ public static function is_from_my_account() { // If we're in My Account. - if ( function_exists( 'is_account_page' ) && \is_account_page() ) { + if ( did_action( 'wp' ) && function_exists( 'is_account_page' ) && \is_account_page() ) { return true; }