Users with the ability to perform administrative tasks for a site or a network of sites.

learn more… | top users | synonyms (1)

0
votes
1answer
36 views

How do I check if the user is a site owner in a network?

I was accidentally using is_admin() to check if a user was an admin and found out that function is not checking that. So I looked for another one and I found is_super_admin() but that checks if you ...
2
votes
1answer
39 views

how to only add a top-level admin menu without it creating a sub-level-menu

Here is a the code snippet: add_action( 'admin_menu', 'travel_site' ); function travel_site(){ add_menu_page( 'Travel Site Menu', 'Travel Site', 'manage_options', 'travel-site-menu', ...
0
votes
0answers
11 views

Turn on certain plugin options after plugin install

I'm having issues in finding a way to auto-activate certain plugin settings on plugin activation. So for example , after you install the plugin "Option 1", "Option 2" will be automaticly ON. Here's ...
0
votes
1answer
31 views

Echo string in admin panel footer beside version no

can anyone help me out about how to showing something lets say "Hello World" beside the version no that shows up in the wp admin dashboard footer? I've already tried the action named admin_footer and ...
0
votes
1answer
77 views

How to change the title attribute for the WP logo image on wp-login.php

This is how I change the url for the WP logo on the wp-login.php page: function my_login_url() { $url = esc_url( home_url() ); return ( $url ); } add_filter('login_headerurl', ...
0
votes
0answers
24 views

How do I control the list of Pages an author can see?

Using one of the role managers,I enabled Authors to edit/create Pages). The edit/create pages screen shows a tree of all the pages in the system. Is there a way for (beside going into the core) To ...
0
votes
2answers
19 views

How to switch between two forms for visitor once admin logged in?

I have two forms (form1 and form2). Once the admin is logged in anywhere, all visitors (not logged in) to my WordPress site should see form1 on the page, otherwise they should see form2. I am using ...
1
vote
0answers
187 views

Filtering posts list table

My post_type is 'part'. I created a custom field 'Images' this way (simply added new columns to the array): add_filter( 'manage_edit-part_columns', 'my_columns_filter' ); function my_columns_filter( ...
0
votes
1answer
41 views

Hide post title input for all roles except admin

How would this function need to be updated to exclude the admin? add_action('admin_init', 'wpse_110427_hide_title'); function wpse_110427_hide_title() { if (current_user_can('subscriber')) ...
0
votes
1answer
28 views

Organizing the position of widgetized areas in the backend

Is there a way to position the widget areas in the WP admin -> Appearance -> Widgets page? I've arranged my register_sidebars function in the proper order however they seem to be displayed randomly. ...
0
votes
2answers
118 views

Making menu link open in new tab?

I'm trying to add a top level menu to the left sidebar of the WordPress admin panel. Here's the code I currently have: add_action( 'admin_menu', 'linked_url' ); function linked_url() { ...
0
votes
0answers
32 views

Next and previous page buttons in wp-admin don't work

I have a problem I have never seen before. For some reason the next and previous page buttons in my wp-admin are messed up. Everything is working just fine on the website except for those buttons. The ...
1
vote
1answer
211 views

Actions that Run on Admin Edit Page Load After Posts Are Queried

What actions run on the edit page in the admin section of a post type? i.e. xyz.com/wp-admin/edit.php or xyz.com/wp-admin/edit.php?post_type=shop_order (custom post type) I need to run a function ...
0
votes
1answer
96 views

Set a default category - if the user didn't select one- before creating a post

Is there some option hook to set a default category for a custom_post_type when the user didn't choose any ? For example in RoR it's very simple - by using before_save filter you can set whatever ...
0
votes
0answers
11 views

Custom html for uploaded images [duplicate]

I'd like to make life easier for the guy who is going to upload posts on a wordpress site. The default html that is created upon upload doesn't work well with the design of the site, so I'd like to ...
2
votes
2answers
75 views

How do I remove the entire left nav bar in admin for certain level users?

I know how to remove items from the left nav bar (hook into admin_menu and do global $menu; unset( $menu[ __( "Posts" ) ] ); for example). But it still shows a left nav bar (with nothing on it). I ...
1
vote
2answers
37 views

Assuming a theme is properly secured, how save is the WordPress admin?

Regarding point 3 in this (awesome) article on mikejolley.com. It states: Never trust user input, even that provided by admin users, because: You have no way of knowing the user is whom ...
0
votes
1answer
101 views

Admin mode breaks with subdomains in latest WP

This is the symptom/issue - I am using a subdomain, and latest Wordpress Rev, as well as PHP on server. When signed in to my site as admin, if I choose admin/customize, I get a new signon screen ...
0
votes
0answers
123 views

Add post meta to search in admin of a custom post type

I am using woocommerce in a wordpress theme and I can't get the search functionality in the admin to include a meta value of 'shop_order' custom posts type. I've been trying to modify the following ...
0
votes
1answer
42 views

How to restrict wp-admin and prevent upload errors

I need to restrict wp-admin access to all users who cant manage_options and still let users add media on the front end. function wpse_11244_restrict_admin() { if ( ! current_user_can( ...
0
votes
1answer
33 views

Why doesn't the Media Browser use thumbnail sized images?

The folks updating our site oft complained about the media browser being very slow, so I went to have a look. And, on the first load of the page, and when doing a search within the media browser, its ...
1
vote
1answer
96 views

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 ...
0
votes
1answer
57 views

Strange menu behaviour wordpress admin [duplicate]

I am able to get logged into my site, but when I hover over some of the menu options, the links behave in an odd manner and some of the link text disappears etc, some of them sit on top of each other: ...
0
votes
1answer
38 views

How much traffic is real traffic?

I have my own domain with my own wordpress installation at http://blog.demofox.org I have both "Count Per Day" and "Jetpack Site Stats" installed and they are usually pretty close in agreement about ...
0
votes
0answers
19 views

Single Column Layout admin

im trying to force a single column layout for my users in the product post page in the admin. Ive tried so many methods like: function so_screen_layout_columns( $columns ) { $columns['post'] = ...
1
vote
0answers
103 views

Admin sidebar element buggy on hover with Google Chrome 45 [duplicate]

I'm using OSX 10.10 Google Chrome Version 45.0.2454.85 (64-bit) And When I go through the sidebar elements on my Wordpress site it looks like this: Is this a known bug?. On Firefox and Safari ...
0
votes
1answer
70 views

Is there a filter to remove or replace the post title's link in the admin post table view (edit.php)?

I thought I could use the filter the_title. But that let's you change the text only. I would like to disable the title link for specific pages. So the title text would stay the same, but the user ...
0
votes
0answers
24 views

Different role for free and pro users in wordpress without using bbpress

I have the condition where all users are created by admin and user name and password given to them. When the created user login than pro user can create post, upload files, edit their profile but the ...
0
votes
0answers
31 views

Style of login page lost after wordpress upgrade

Site has been launched for a long time and automatically upgrade was enable . Recently I found some of the sites lost the style to the login page. Not only one site, several of my sites have the same ...
0
votes
1answer
32 views

Multisite Admin Roles

I have a multisite with the following lines of code in my functions.php file: add_role('test', 'Test Priv', array( 'activate_plugins' => true, 'delete_others_pages' => true, ...
0
votes
1answer
204 views

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 ...
1
vote
2answers
158 views

How to remove duplicate sub-menu name for top level menu items in a plugin?

I have written a custom plugin for wordpress. Once I add a sub-menu to the plugin I get a double entry for the top level item: I would like to disable the second "TopLevel" menu item so it would ...
0
votes
0answers
120 views

modify admin panel all post to show date time

Hey I want to Know how can I modify admin panel all post to show date and time instead of only date. Published post will have published date and time and scheduled post will have scheduled date and ...
0
votes
2answers
108 views

Load stylesheet on custom admin submenu page

I'm trying to load a stylesheet for a particular admin submenu page. The code below is what I came up with after looking up admin_enqueue_scripts in the codex: function my_function($hook) { if ( ...
0
votes
0answers
34 views

How to add text next to the title in the admin area

is it possible to add text at the places the arrows are pointing? I also want the text to appear only on one particular page. I would think there must an action out there that lets me do that, right? ...
0
votes
1answer
21 views

How to create 30 new sites from an export of a master site?

I am an admin for a Wordpress multisite instance at a college. I need to create 30 new wordpress sites, each for a similar course. The content is going to be copied from a "master" wordpress site ...
0
votes
1answer
38 views

What Role to assign remote site developer?

We have hired a developer who we communicate with via upwork. We want him to be able to make any changes to the site, except to boot us out! Which Role should we assign to him - Admin? If so, is there ...
0
votes
1answer
171 views

current_user_can('Administrator') does not return true in multisite if user is Administrator but NOT Super Admin

I have a multisite WordPress installation set up, and have a user who is set to an 'Administrator' role on both sites. However, the function current_user_can('Administrator') does not return true when ...
0
votes
0answers
84 views

Adding filter menu to admin custom type list to filter by custom field values having issues

I've been working on this for a bit and am having some difficulties because I can't understand for certain what is going wrong and why I'm getting the error that i am. It's hard to tell if it's a WP ...
0
votes
2answers
42 views

WordPress Admin Email

I am planning to build a WordPress site in which I will setup WooCommerce to sell products. I have created a test site before in which I used my personal email account (gmail) as admin email. Then I ...
0
votes
1answer
194 views

Admin Ajax is returning 0 and not Insert data

I am relatively new to jQuery and AJAX in particular. I have a small issue with the return value always being 0, though I think this is actually the success message and it's not returning anything. I ...
0
votes
1answer
77 views

Display read only info on admin, custom post page

I have a custom post type, user submitted posts. When viewing a post as admin I only want to "Show" the posts title and content as there is no need for it to be in a text area or wiziwig. It's not a ...
0
votes
1answer
41 views

How to activate the dashboard

Brand new to wordpress, and I'm trying to install a portfolio template called Semplice, how do I activate or find the wordpress dashboard to activate Semplice as a theme, and use all of its functions? ...
0
votes
1answer
87 views

Adding CSS-class to WordPress Menu in backend

I am wondering if its possible to add CSS-classes to WordPress menu in backend. If building complex menus, the overview gets lost - would like to style it a bit. Normally it would be fine to add the ...
0
votes
0answers
42 views

Control user sessions - Wordpress admin

In my project, there is a page in the admin area where users can control the homepage by drag and drop. The biggest problem is if two users make changes at the same time. I wonder if there is a way to ...
1
vote
1answer
27 views

Adding Page URL to the Pages Admin Table

I want to add the Page URL as a custom column to the Pages admin table. Here is where I am at with the code. Code is in the theme's functions.php. function lrh_modify_page_table( $column ) { ...
1
vote
1answer
28 views

How to set default editor tab

I'd like to have always open the Text tab in editor in administration instead the HTML tab. Is it possible?
0
votes
1answer
44 views

Defined user role to access plugin's pages

I Have two plugin installed Job Manager and Events and i want to defined User roles to access These plugin's created pages (Plugin Pages).
2
votes
1answer
109 views

How to test for Super Admin

I have the following code in my mu-plugins.php file and the is_super_admin() function does not correctly result in true. I am running v4.2.4 function check_for_superAdmin() { if ( ...
0
votes
1answer
79 views

Get the selected posts IDs to use in bulk edit AJAX call

The WordPress codex for bulk_edit_custom_box, along with this bulk edit example use the following piece of JavaScript to create an array of selected post IDs to send with the AJAX call that updates ...