Watching video about plugin creation and 2 lines af code make me stuck.
Maybe you know why the author call get\_current\_user() and not assign its value?
Maybe there is an error? Should be like that:

```
global $current_user = wp_get_current_user();

```

What do you think?[![here is the full func code](https://i.stack.imgur.com/bDCIq.jpg)](https://i.stack.imgur.com/bDCIq.jpg)