You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use BackendAuth;
public function getUserIdOptions()
{
// placeholder
$result = [];
// only back-end user which is currently logged in
// it will be available always as we are in back-end :)
$user = BackendAuth::getUser();
$result[$user->id] = $user->login; // or $user->email;
return $result;
}
Hi, thank you for the super pluigin!
Just, can I ask you for help? I would need to remove the author selection option, I want the author to always be the user who creates the post.
Will you please tell me what to do? Thank you.
The text was updated successfully, but these errors were encountered: