Editing edit-tags.php page in wp-admin

You can use the dynamic {$taxonomy}_term_new_form_tag action, where you replace {$taxonomy} with your taxonomy slug. Example1) For the post_tag taxonomy: add_action( ‘post_tag_term_new_form_tag’, function() { printf( ‘><div class=”form-field”>%s</div’, esc_html__( ‘Some content’, ‘mydomain’ ) ); }, PHP_INT_MAX ); 1) Update: I didn’t noticed at first that this is inside the <form> tag, so this is a hack … Read more

Custom plugin admin page issues

The last parameter of add_submenu_page expects a function callback, not a file include – hence the error as that is not a valid callback. (See add_submenu_page in the codex.) You can include the file in the function if you prefer: add_submenu_page( “???”, “Add / Edit Price Options in Kilometers”, “Add / Edit Price Options in … Read more

I am unable to login into my wp-admin

You can fix this by changes site_url and home_url in your database. If you have access to your database(phpmyadmin) go to options table and change site_url and home_url from HTTPS to HTTP. You can also change it through wp-config file. define(‘WP_HOME’,’http://www.example.com’); define(‘WP_SITEURL’,’http://www.example.com’); See: https://codex.wordpress.org/Changing_The_Site_URL for possible methods. Hope this helps.

meta box on new admin page

You are trying to create a new admin page with add_pages_page(). Meta boxes are only for existing post types, not for admin pages. You need to create your fields like on a normal admin page. You should read the official codex about this first: Creating Options Pages For a simple start take a look at … Read more