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 96830

A function is a sequence of program instructions that perform a specific task. It is packaged as a unit that can be used wherever the according task should be performed.

0 votes
2 answers
976 views

Redirect User Role When on Specific Page

I am trying to redirect user roles to a specific page. If their role is contributor and is trying to access the Users Admin Page they should be redirected. Not sure if I am doing this correctly as it …
Alex M's user avatar
  • 133
2 votes
Accepted

Copy custom field value to post title

Okay! Finally, I was able to make it work. Below is the complete working code. add_filter( 'wp_insert_post_data' , 'modify_post_title' , '99', 2 ); // Grabs the inserted post data so you can modify i …
Alex M's user avatar
  • 133
1 vote
1 answer
929 views

Copy custom field value to post title

I used the code found here. However, that does not update the title field until you open the post and hit Update button both via the back and front-end. I tried changing "save-post" hook with "edit_po …
Alex M's user avatar
  • 133