Articles of admin

Adding text in more than one language (at the same time)

I am building a wordpress site. On the upper-right hand corner of every page on the site I am going to have two (or more) flags, and clicking on any given flag should cause the site to display the text in the language corresponding to the given flag. In order to do this, I should […]

Admin doesn't have sufficient permissions to plugin's page

I’m not able to visit plugin page in my admin panel. I have found some advices for debbuging this issue, but I wasn’t able to find any solutions in mySQL, everything seems ok. Does anyone has ideas that to do with it? You do not have sufficient permissions to access this page. Array ( [Pages […]

Add theme options to custom post type admin pages

I have custom post types set up using CCTM plugin and I’m using the Bridge Theme by Qode. The theme adds options to the posts and pages admin (custom theme options, title area, header etc.), I’m trying get the same options for the CCTM pages in the admin. I’ve been through the functions.php for the […]

How to add multiple existing users to a multisite site?

I have a multisite instance of WordPress, and I need to add 50 existing users to each of 20 new sites. One by one is going to take a very long time, and will send each person 20 emails confirming that they have been added to the blogs. Is there a method I can use […]

How to remove “publish metabox” from each post type

Is there any way, how to remove “Publish metabox” from each post type (post,page,custom_post_type) anything. I know how to remove it manually, for each post type, but how to do it globally? remove_metabox(…)

how to change appearence of the content of default post list columns?

Speaking about backoffice here. I usually add columns and filters to the backoffice for certain custom post types. No problem here. BUt what if I would simply like to change something on the content of the default columns? For example, how to change the color of the post titles? And say, only some titles on […]

How to send little data between admin pages of my plugin?

I have a plugin that creates two pages in admin menu: /wp-admin/admin.php?page=list-records /wp-admin/admin.php?page=add-edit-record I’m regularly using add-edit-record to to create some sort of record and to put it in wp database. On the other hand page list-records lists all the records I already created plus allows me to delete record. I want to let add-edit-record […]

How can I link a file in admin with a button?

Let suppose I have made a file in my theme folder (with the name c.php) and I want it to link it with a custom button (that I have made in post/page) in admin using GET action. How can I achieve that

Admin page redirect to another admin page

How can I redirect certain WordPress admin pages to another admin page. For example I never want a user to see wp-admin/about.php it should always redirect to wp-admin/index.php. There are also a couple plugins that redirect to a plugin welcome page with promotions the I want to be able to check if this URL then […]

Add menu page on multisite

I’m trying add menu page in multisite (settings will be global for all blogs). Current code created in plugin and activated in network function wpdocs_register_my_custom_menu_page() { add_menu_page( __( ‘Custom Menu Title’, ‘textdomain’ ), ‘custom menu’, ‘manage_options’, ‘myplugin/myplugin-admin.php’, ”); } add_action( ‘admin_menu’, ‘wpdocs_register_my_custom_menu_page’ ); But it show only in blog menu, I think should be different […]