Skip to main content
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
Results tagged with
Search options not deleted user 48146

A name for an event that is executed at specific points throughout the WordPress core.

0 votes
2 answers
394 views

Trying to write a function in an external php file to manage admin menu visibility

I am loading my php file by putting this into my theme's functions.php: require get_stylesheet_directory() . '/inc/manage-menus.php'; alter_menu('my-user', 'plugins.php', false); The code in manage …
wxT3APyGfkYJVK's user avatar
0 votes
Accepted

Trying to write a function in an external php file to manage admin menu visibility

I think Михаил Семёнов is right, but I had to get another push by cybmeta in another thread, which lead to this: functions.php: $menu_alterations = array( 'user' => array('my-userA', …
wxT3APyGfkYJVK's user avatar
1 vote
Accepted

Replace admin header logo with an image

I think the path to the image is wrong, use get_stylesheet_directory_uri() to retrieve the style.css path. If this isn't it let me know and I will take a closer look. I just dug out an example which …
wxT3APyGfkYJVK's user avatar
0 votes
0 answers
2k views

Object oriented programming, add_action in constructor not firing

I am trying to write a class that adds an action to the save_post hook, but the post_updated function never gets called. I tried some variations, but it never gets called. Am I doing something wrong? …
wxT3APyGfkYJVK's user avatar
9 votes
1 answer
28k views

Trying to use add_action and do_action with parameters

In my themes functions.php I trying to add a function with parameters (as a test if this works, not for the functionality) and it simply doesn't work. The parameters always arrive empty even if I cal …
wxT3APyGfkYJVK's user avatar