Get logged in user with – custom plugin

Instead of using init hook why don’t you use the wp_loaded hook. This way, you’re sure that everything is loaded add_action(‘wp_loaded’,’do_stuff’); function do_stuff(){ $current_user = wp_get_current_user(); if ($current_user->ID > 0) { // rest of your code here // $current_user->ID will give you the ID of the current user. } }

Custom Gutenberg Block ‘Stylized List’ – Incorrect Rendering and Looping of List Items

Use unique indices for List item keys. I.e., use package like https://www.npmjs.com/package/uuid to generate unique indices or useInstanceId to generate them. Note that if you use useInstanceId generated Id’s will be unique, but you will get odd or even numbers because of the way React renders components (which does not matter, unless you want to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)