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

learn more… | top users | synonyms (1)

2
votes
2answers
49 views

How to find out if an wp-admin action edited a file?

I want to create a small plugin to automatically purge the APC opcode cache after specific actions in the Wordpress admin interface. This is necessary if e.g. apc.stat is set to 0, as a change to a ...
2
votes
2answers
599 views

Read only capability for custom post in admin area

I'm actually building custom type to WP and need to be able to restrict post access to some user role, ie. in admin area, collaborators can see posts but can't edit them, just only open them as ...
2
votes
1answer
54 views

Text snippets shared across posts

I'd like to add a "fast facts" section to a wordpress site - an area in the sidebar where snippets of text are rotated. Where is the best place to store things like this? Widgets don't really allow ...
2
votes
4answers
6k views

Cannot access admin panel

I have been working on my site through MAMP and with a localhost. I have not uploaded my site online yet. I have worked in it for weeks accessing through the MAMP start page and then typing ...
2
votes
1answer
410 views

How to get a nofication when post submitted

I was wondering is there a way to send the admin a notification (email or otherwise) whenever a user submits a post. Currently, I have to log into the admin section to see if there was anything ...
1
vote
1answer
204 views

Plugin: AJAX query external API to sync to tables

I'm wanting to write a plugin that hooks into an external API and syncs to a couple of database tables some information. I want to do this in a best practice way if there is one. I want the user to ...
1
vote
1answer
432 views

Add number new posts (post_status = pending) to administration menu [duplicate]

What I have: A custom post type. A front end posting form which creates new posts with post_status = pending until they are manually reviewed and status changed to published. What I need: While I can ...
1
vote
1answer
109 views

How to Remove the “Restore” Link in Quick Edit?

I want to know is there any hook to remove the Restore link in the edit page - trash page? /wp-admin/edit.php?post_status=trash I know I can hide it with a css/jquery trick, but I prefer to use a ...
1
vote
1answer
387 views

How to display only logged in user's post comments in comments area

I am making a custom Wordpress site where School students logged in and add their posts. I am giving them rights to use wp-admin panel with little customization and modification. QUESTION: "How can ...
1
vote
2answers
267 views

Modify built-in post type properties

I have an unusual situation where I need to make the built-in post type 'page' non-hierarchical. I printed the post type object with var_dump(get_post_type_object('page')); die; and I got this: ...
1
vote
1answer
1k views

Add User meta fields, which only admin can edit

is there a way to add custom user meta fields (like the one in the profile.php which contain specific user data), but only an admin (or an other user with enough capabilities) can change them? Maybe ...
1
vote
6answers
5k views

wordpress upload http error?

I'm trying to uplaod video files,my upload file size limit is 96mb,and I can upload videos until 10mb size,but I want to uplaod videos that have 20mb size.If I try to uplaod bigger video I get http ...
0
votes
1answer
25 views

How to print the output of the get_num_queries function from frontend to backend?

I'm trying to develop a simple plugin and figure out how to display the number of queries executed in frontend, to an admin page (plugin options page), using get_num_queries() function. I've added ...
0
votes
0answers
44 views

How to validate datepickers before publish

I have two datepickers in my post: 1. start_date and 2.end_date Basically, I need to check if end_date is greater than start_date before I can proceed to publish. From a previous solution here, I ...
0
votes
1answer
44 views

Overview with latest edited posts and pages

I'm looking for an overview of all the latest user activities. But I don't want to see comments on this page, just the edits or creations of new posts or pages. Unfortunately I can't find such a ...
0
votes
2answers
1k views

How do I get the current edit page ID in the admin?

Most solutions I found are for front-end use. This is for a plugin, so the all activity is in the back-end. How do I get the page ID that's being currently use(edited) in the admin? Note I'm out of ...
0
votes
1answer
191 views

How to display custom post meta in the appearance->menus page

I'm working on a website and added a custom meta option for all pages / posts called: "Location". $value = get_post_meta( $post->ID, '_privacy_location', true ); I'd like to add the value on ...
0
votes
1answer
134 views

Hide pages depending on role

I've been trying to find a way to limit the user from seeing some pages in the "pages" menu in the admin panel. I looked in the edit.php file and noticed: } elseif ( 'page' == $post_type ) { ...
0
votes
2answers
67 views

Reference external file as a function

In my functions.php I have the following code: add_action( 'admin_menu', 'jp_create_admin_pages' ); function jp_create_admin_pages() { add_menu_page( 'Members', 'Members', ...
0
votes
1answer
98 views

Create a WordPress administrator without access to back-end

My site recently got hacked, and all my admin users lost their administrator level access. But when I access mySQL database, I saw all the users still exist. How can I create an administrator when I ...
0
votes
1answer
222 views

Re-ordering Admin Submenu Sections

I was looking at the method below to reorder the Admin Menu Sections: http://wordpress.stackexchange.com/a/1220/1044 ...and was wondering if it's possible to reorder the submenu sections using ...
0
votes
1answer
417 views

Blocking Administrative Access to Authors and Subcribers?

I would like to turn off admin panel for authors and subscribers. Is there any secure way to keep them away from admin panel?
0
votes
3answers
325 views

Wrong url in sortable column headers & pagination in the admin, when behind a proxy

Recently I changed the url of my site from atlas.site.com to site.com, one thing I just came across in the admin area for posts, custom post types, pages, where there are more than one page of posts, ...
0
votes
2answers
957 views

I keep getting logged out in Firefox

For some reason, tonight when I have gone to work on my Wordpress installation I firstly found myself logged out, even though there was a few cookies left in Firefox relating to the website and when ...
0
votes
2answers
1k views

How do you modify CSS files via admin panel?

All theme styles are in style.css file. Let's say first line looks like: body { background-color: #fff; } Now, I've created an option in admin panel named body_bg. User types #000 there and I ...
0
votes
1answer
840 views

How to link categories to custom taxonomy terms?

In a site I have registered some custom taxonomies. I want to have sort of a linkage between one of the custom taxonomies and the categories (which is, also, a taxonomy by itself), in such a way: If ...
0
votes
1answer
147 views

Default, locked sorting of posting fields

Is there anyway to disable custom dragging and sorting of the posting fields in admin? From time to time, the fields gets dis-ordered, and I have to sort them back to the way I want it, witch is ...