add category id to option name when adding an option on edit_category

There are 4 problems a small one, a security problem, a misunderstanding, and a big problem. The Small Problem Because you used [] notation in the name you’ve indicated that there are multiple category_meta_ values: category_meta_[<?php echo $cat->term_id ?>] Which means $_POST[‘category_meta_’] will always be an array. It would be much easier to append the … Read more

How to prepend a header section to all pages related to my WordPress Plugin

it didn’t work for you because hook admin_head is designed to add <link> tags inside <head> section. So even if you will render something there it won’t be visible, because it is outside <body>. If you want to render something after admin head bar, you should use wp_after_admin_bar_render hook: https://developer.wordpress.org/reference/hooks/wp_after_admin_bar_render/ To determine if you are … Read more

Show Admin Menu

add_submenu_page() this function used to add submenu in Admin Menu Page. And You will remove submenu from wordpress admin using remove_submenu_page(). add_submenu_page() by default takes 7 parameters. add_submenu_page( string $parent_slug, string $page_title, string $menu_title, string $capability, string $menu_slug, callable $function = ”, int $position = null ) Write the following code in your functions.php file … Read more

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