Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Tools for site administration located in the `wp-admin` directory of a WordPress site.
5
votes
Warning/Error in Admin Panel while developing theme
So you have your code in a class, let's say it looks like this...
<?php
class WPSE82245
{
public function action_init()
{
// do stuff
}
}
Now you try to hook it into something.. …
3
votes
Accepted
wp-login.php -- redirect logged in users to custom URL
The best way to figure out what's happening for a problem like this is to go to the source. Literally.
Take a look in wp-login.php and look for an action that fires before any HTML rendering happens. …
24
votes
Accepted
Disable /wp-admin/plugin-install.php
There is a constant you can define in wp-config.php to do this.
It will also disable the theme edit, however.
<?php
// somewhere in wp-config.php
define('DISALLOW_FILE_MODS', true);
That will remove …
1
vote
Accepted
Custom admin post.php page
I suggest you just don't use the standard post editing UI. When you register your post type, there's an arg for showing the admin UI.
<?php
register_post_type(
'some_type',
array(
// …
2
votes
Why isn't admin_notices displaying my text? [Simple Plugin, Beginner]
var_dump($paths); shows that the your $paths variable is an empty string. It's not showing anything because there is nothing to show.
Since you seem like you're trying to find all the plugins, you sh …
2
votes
Accepted
Redirect non-admin users away from wp-admin/index.php (main dashboard page) to wp-admin/prof...
The easiest solution is to hook in load-index.php and redirect non-admin users to their profile. Effectively blocking access to that page. I'm going to wrap the permission check up in a function for t …
1
vote
Accepted
Fatal error: Exception thrown without a stack frame in Unknown on line 0
About the Error
Exception thrown without a stack frame
Means that someone's code threw and exception in a place where it wasn't allowed to throw an exception. For instance, one cannot throw an excep …
9
votes
Accepted
Is it possible to show custom comment metadata in the admin panel?
To show the content on individual edit pages you need to add custom meta boxes to the comment edit page. You'll use the key comment for the $page argument of add_meta_box.
<?php
add_action( 'add_met …
1
vote
Allow SVG in WP step by step
But how to know what is my WP namespace?
namespacing a function, in WP land, just means prefixing it with something that makes it more unique and unlikely to conflict with anything else. Generall …
2
votes
Accepted
Customizing Users in Admin Area
How can I add them to the middle?
You won't be able to add them directly where you want, but you can get close.
There are four hooks to put stuff into the profile page:
personal_options -- fir …