Tools for site administration located in the `wp-admin` directory of a WordPress site.

learn more… | top users | synonyms

6
votes
4answers
3k views

How to disable the “Post Lock/Edit Lock”?

I want to disable this just for one Post Type, as it doesn't really matters if there's another user editing it (the main content editing area is Ajaxified and non-admins can only see that). I ...
22
votes
6answers
12k views

How do I enqueue styles/scripts on certain /wp-admin pages?

I have two simple functions that load stuff using wp_enqueue_style() and wp_enqueue_script(), something like these: function admin_custom_css() { wp_enqueue_style( 'stylesheet_name', ...
2
votes
1answer
470 views

Can an admin check passwords of registered users?

I have a site where I open accounts for users and hand over login credentials to them. Now, Let's say that a user forgot his password, and wants to reset it. He clicks "Lost your password?" link on ...
0
votes
1answer
123 views

How do I add a custom button to my “edit” list? ( edit.php?post_type= ) beside “Add New”

I have a custom post type for a plugin I'm creating and the label for the "add an item" type of button (at the top of the list page) needs a partner-button that says "import" and one that says ...
0
votes
0answers
27 views

In edit post show categories as select instead of checkboxes

In wp-admin edit post categories(taxonomies) are listed as checkboxes. People can select multiple categories. That is exactly what I don't want! I want the categories to be listed as an ...
0
votes
0answers
20 views

Get previous post ID for wordpress blog in admin area

I use W3 total Cache for my wordpress blog. I want to automatically purge the cache of the previous post, when a new post is published (or when status of a scheduled post becomes published). Note: I ...
2
votes
1answer
48 views

How can I delete all inactive widgets?

I want to cleanup all inactive widgets. I tried following snippet as suggested by this answer Script to remove all inactive widgets?. $sidebars_widgets = get_option( 'sidebars_widgets' ); ...
4
votes
3answers
2k views

How to change the wording in wp-admin back-end?

I don't want to edit core files in order to change the page where a user enters new posts, so is there a way to do it within a theme, perhaps within functions.php ..? Specifically, I'm trying to ...
0
votes
1answer
49 views

Seems that admin_post_{action} does not executing

I'm trying to proccess different actions of my plugin with admin_post_{action} hook. But following code seems not working class TestPlugin { function test(){ die('working!'); } ...
0
votes
1answer
34 views

how to stop wordpress admin menu from scrolling with page

Ive already answered this question but when I came on here I noticed this question hasnt been asked, but the question is: How do you stop the admin sidebar menu from scrolling with the page?
0
votes
0answers
33 views

Hide username discovery

How do I stop my usernames being leaked? To explain I tested my WordPress site on http://wprecon.com, and found that my admin username (that I have changed) was able to be discovered. User ...
0
votes
1answer
54 views

What is wrong with functions.php? Fills error log with same error

After a third-party developer was used to reconnect our calendar with the Google Calendar API 3, we found that our .../wp_admin/error_log infinitely wrote: [14-Apr-2015 11:46:59 America/New_York] ...
0
votes
0answers
17 views

Search Posts or Users and Print results

Are there any plugins that would allow a user to search a custom post type and/or users and print results from the backend. For example, a user would go to /users.php search for users by role and ...
0
votes
0answers
26 views

How to hide media link to settings?

I want disable MEDIA LINK TO settings for authors. I tried following code, but authors are still able to change settings. add_action( 'print_media_templates', function(){ echo ...
44
votes
7answers
23k views

Organizing Code in your WordPress Theme's functions.php File?

The more customization I make to WordPress the more I start thinking about if I should be organizing this file or splitting it up. More specifically, if I have a bunch of custom functions which only ...
0
votes
2answers
100 views

Select box saves but doesn't update value in admin

I have a select dropdown in my custom meta box in the admin area. It offers two options Approved and In Progress. When I select an option and save it the database is updated, but the value in the ...
0
votes
1answer
82 views

Modify users.php page to create page/post on button clicked

I am trying to create a new Column in users.php (Wordpress Users Page) with buttons. Each button, associated with the user, has to create a page or a post (based on my programmatically selection). I ...
5
votes
1answer
788 views

Create a “Dummy” parent page for a hierarchy in page listing?

Is it possible to set up a "dummy" page - just a page title that appears in the page listing, and a page that is not editable and doesn't have a slug? This is more of a hypothetical question, as I ...
2
votes
2answers
3k views

How to prevent access to wp-admin for certain user roles?

I did try using the plugin Front End Users but this clashes with something as it prevents access to some front end pages. So I need to manually just set it so that anyone who isn't one of two ...
0
votes
0answers
44 views

Issue with iframe in TinyMCE

How do TinyMCE generate an iframe in wordpress admin panel ?? Actually I could not find out the starting point of iframe which is generated by TinyMCE. Thanks
0
votes
0answers
55 views

Cookie Domain is preventing Admin login

I just defined a Cookie Domain in my wp-config.php: define( 'COOKIE_DOMAIN', 'http://www.example.com' ); define( 'WP_HOME', 'http://www.example.com' ); define( 'WP_SITEURL', ...
1
vote
1answer
249 views

How to make post sticky in the admin page?

i work with restaurant plugin that use custom post type. the question is, if it possible to select some post and make him sticky (always be in the top) in the admin? i need this because when you add ...
0
votes
0answers
17 views

How can I use the admin part of a plugin outside of the admin area?

I know it depends on the plugin, but I'm probably gonna need to do this with a couple of plugins. What would be the general steps to take? The way I see it there are two options: Include WP files. ...
0
votes
0answers
9 views

How to put categoies in admin menu

Hi i want to put two categories of post in admin menu which are floorplan and community. So those categorizes directly can see in admin menu. if i am not wrong from function.php i may do it.
2
votes
0answers
58 views

AJAX requests broken due to HTTPS for wp-admin

I have my wp-admin section forced to HTTPS via a plugin. I also have specific pages that are using https on the frontend (login, billing, etc.) I seem to be having an issue with HTTP pages using AJAX ...
0
votes
0answers
62 views

Get admin menu contents on frontend?

I'd like to access the variables $menu and $submenu while not being in admin dashboard. For example I'd like to display their contents in wp_footer. It seems almost impossible to me, since action ...
2
votes
2answers
150 views

Redirect members to custom page upon logging in through WP admin

When a members logs in through WP admin, I would like to redirect them instantly to a custom URL. What will I need to change to make this possible? Respond with step-by-step details would be ideal.
0
votes
0answers
26 views

wordpress login loop after install

I spun up a AWS instance to run a LAMP stack + the latest Wordpress (4.1.1). I am doing everything from the command line as root and do not use Cpanel or phpMyAdmin After creating the user + DB and ...
20
votes
3answers
33k views

Changing Admin Menu Labels

I have spent the last day using the functions.php file to fully customize WordPress for my client sites. I am amazed at how much I have been able to accomplish and how much easier it will make things ...
0
votes
0answers
103 views

WordPress Multisite on IIS 8.5 - options.php not found on save changes

I've just installed a fresh WordPress on IIS 8.5 and configured it to work with sub-directories. On the primary site everything works fine, but... The problem occurs on the sub-sites that are created ...
0
votes
1answer
21 views

How to add next height number in Order Attributes inside the Add new page. [duplicate]

By default, when a new page is added it will be given the next highest number not already assigned to a page.
0
votes
1answer
29 views

Wordpress Admin - Add Edit link to specific page under Pages Menu

I am trying to add direct links to edit specific pages, under the Pages menu: Currently I am using, which give me the menu item / link: add_pages_page( 'Hero', 'Hero', 'read', '15', '' ); ...
0
votes
2answers
61 views

Custom capabilities not reflecting on admin panel

I've made some custom post types, and some user roles. Each role has access to different custom post types. The thing is that edit_others_customposttypecapability, isn't working. I've tried logging ...
0
votes
1answer
86 views

How to get User Profile path dynamically in wordpress admin panel?

I create registration plugin in front end for user. my all user save as 'subscriber'. Now I wont to get each user profile path from User Profile path dynamically. Simply, Admin Profile path in back ...
0
votes
1answer
61 views

How to make in WordPress admin panel sortable column for the custom field, that count the number of page impressions?

Good day! I try to make display post counter for WordPress. Output count of views function getPostViews($postID){ $count_key = 'post_views_count'; $count = get_post_meta($postID, $count_key, true); ...
0
votes
1answer
711 views

Make a custom column sortable, by custom post count

I have the following code which at the moment displays all posts from post_type product in a column called Art in the users section of wp-admin. (slightly modified from ...
0
votes
1answer
44 views

How to view all posts of current day as default in admin

I want to to show all posts of the current date by default (without clicking the filter button) in WordPress admin posts list screen. I have used this code in functions.php and it works almost. The ...
0
votes
1answer
22 views

WordPress Installed But Not Showing Up! [closed]

I successfully installed WordPress on my domain. I FTP'd and installed it manually. But, something very strange is happening. Whenever I visit my website, the default WordPress Sample Post page is not ...
0
votes
2answers
657 views

customizing wp user with custom fields

I want to allow the admin of a site i'm building to highly customize the wordpress user. This will be a highly advanced plugin so I'm fine creating a whole new page in the admin to do this ...
0
votes
3answers
55 views

Add field to 'Add User' admin page

How can I add an input field to the admin section Users -> Add New? I want to add a field for a phone number, but don't want a plugin to do that.
0
votes
0answers
11 views

I am not accessing my login

I installed and activated a plugin for the content security of my website, but now I can't get access to my login page. When I try to login, it shows me a message in the URL place that your page is ...
0
votes
2answers
2k views

Blank page for edit.php

I get a blank page on /wp-admin/edit.php after change the number of post to display. The bug is due to the PHP memory, but on my hosting I have no possibility to change this value. How to reset the ...
3
votes
4answers
3k views

how do I force a single column layout in screen layout

I am using multipress, but users with small screens cannot access the HTML tab as the Publish meta box has a div that slides above it, disabling the ability to click it. One idea is to force a single ...
0
votes
2answers
434 views

Add Custom Script in Other Plugin's Options page

I am trying to put a custom inline JavaScript is an options page created by a plugin. The page URL is like this wp-admin/admin.php?page=psbg. This is the code I am using to output my script at the ...
0
votes
0answers
23 views

redirect to another domain after login and publish

My domain name includes a special character e.g. "aél". After I log in, it redirect to a totaly different dopmain: "al" the character "é" is missing. Can anybody help, how this problem can be ...
0
votes
1answer
67 views

2 website 1 database… Local to online

I've two wordpress websites : - One online in FTP folder "www", for this website everything's ok ! - The second website is on localhost for the moment. I would like to put the second website on the ...
0
votes
1answer
220 views

Don't allow access to wp-admin but allow admin-ajax requests to be fulfilled on frontend?

I have a site that requires users to have an acccount to use it. I don't want certain user roles to have access to wp-admin. All account changes should happen on the frontend account management ...
0
votes
0answers
26 views

wp-admin won't load when domain includes Hungarian characters

I have a Hungarian domain: "akadálymentes-honlap" After I login, wp-login.php redirects to "www.akadlymentes-honlap.hu/wp-admin". Hungarian character "á" is missing. I made a test, where I put IDN ...
4
votes
1answer
94 views

Custom post type Admin Page

I've got a custom post type that is going to be showcasing images that users have submitted, at the moment, check the images that users have uploaded is a boring task – I have to go into each post, ...
0
votes
1answer
44 views

Missing 'Move to Trash' option from bulk select box

I seem to be missing the bulk select option for moving multiple items to the trash. This happens when all plugins are deactivated as well. Has anyone come across this before? ...