I have a strange trouble. I am creating template with Genesis. And the folowwing code works with my account, but no with another account
// Works good on every account
$registrations = EEM_Registration::instance()->get_all(array(array( 'TKT_ID' => $tkt_id)));
foreach($registrations as $registration){
// Trouble to get informations
$statu_oneach = $registration->status_ID();
$complete_fname = $registration->attendee()->fname();
$complete_lname = $registration-attendee()->lname();
// Some echo
}
That might be related to the user’s capabilities. Does the other user account have the same capabilities that your account has? Here’s a link to the documentation that has an overview of the EE4 Capability System:
The support post ‘EE4 – Code – Different behaviour folowing profiles’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.