Tagged Questions
-1
votes
1answer
173 views
Adding a second email address to a completed order in WooCommerce
Before I ask this question, I know there is a (legitimate) hesitation to answer questions here about Woo products since they have their own support and their users should be encouraged to use that. I ...
1
vote
1answer
103 views
Convert hyphen to underscore in permalinks
I would like to use underscore in my permalinks instead of hyphen.
Current permalink:
www.example.com/2013/01/hello-this-is-a-test-post/
Desired permalink
...
3
votes
1answer
83 views
How to prevent deleting of comments when deleting a post
Like the title says: How can i prevent Wordpress from deleting post comments when i delete a post?
What i am trying to accomplish is that i want to merge all comments from different posts to posts ...
0
votes
2answers
633 views
Customized wp_new_user_notification
Customized wp_new_user_notification
I'm kind of inexperienced with it comes to editing Wordpress functions, yet i'm currently trying to customize wp_new_user_notification in order to personalize the ...
2
votes
3answers
600 views
How do I call wp_get_current_user() in a plugin when plugins are loaded before pluggable.php?
The current result is "PHP Fatal error: Call to undefined function wp_get_current_user()" which makes sense, but doesn't help.
I need to use $current_user.
Here is the code I'm currently using:
...
0
votes
1answer
172 views
How to add custom function to pluggable.php
I am working on a WP plugin and I want to add a custom function to pluggable.php (located in /wp-includes). I am calling that function from admin.php (located in /wp-admin)
eg. Consider the function ...
0
votes
1answer
199 views
Adding tables to dashboard pages programmatically?
I think that is not possible with some actions or filters, I know that I can do it just with html and using right css styles, and of course php to achieve what I need, or to write some minde actions. ...
0
votes
1answer
617 views
overwrite a plugin function in functions.php
need to customise a plugin function but would rather not edit the plugin itself so updates wont remove the custom changes.
function iss in a class called UserAccessManager and the function is;
...
1
vote
5answers
170 views
Problems with removing admin bar
I am trying to remove the admin bar from a theme front end of a theme.
I found the following code block:
add_filter( 'show_admin_bar', '__return_false' );
remove_action( 'personal_options', ...
0
votes
1answer
465 views
change default option in wp_dropdown_categories
I'm using wp_dropdown_categories() to output a dropdown.
In default view (without having clicked it) it shows the name of the first category in the list. I'd like it to say "Categories". Is this ...
3
votes
5answers
1k views
Removing custom background and header feature in child theme
I am creating a child theme using twentyten as my base. I am looking for a way to remove the features of adding custom header and background without touching functions.php file in the parent theme.
...
10
votes
1answer
4k views
How to override parent functions in child themes?
I've been reading around and trying to figure out how to do this, but for some reason I can't seem to override parent functions in my child theme.
I'm using TwentyTen as a parent - can anyone tell me ...
2
votes
2answers
3k views
Wordpress 3.1 - How does one add sticky post capabilities to post types
In wordpress 3.1 they finally added the option of allowing posts belonging to a custom post type to be marked as "sticky"... what I can't figure out though is how to enable this so the admin menu ...
1
vote
1answer
566 views
Using Default WordPress Custom Header Image Crop Feature in a Post Type / MetaBox
I am not sure how many of you have experimented with the new custom header image functionality of wordpress 3.0 but its actually very cool (enabled by adding the function to your functions.php file).
...
169
votes
108answers
60k views
Best Collection of Code for your functions.php file [closed]
Please vote on the question and any answers you find useful by clicking on the UP arrow on the left hand side of the question or answer.
As with many others who are now viewing this post, I have been ...