The hooks tag has no wiki summary.
1
vote
1answer
524 views
Wordpress Delete hook with wp_delete_post function?
I have this action/hook:
add_action( 'before_delete_post', 'my_delete_function' );
function my_delete_function($post_id) {
global $wpdb;
$achievement = get_the_category($post_id);
$h = ...
1
vote
2answers
450 views
Display info from custom fields in all images' HTML
Okay, I've been working on this all day and can't find the solution anywhere. I've created a custom field within the image upload screen (info first found here). The field stores the name of a ...
1
vote
2answers
1k views
Why isn't is_home() working correctly?
I put a if(is_home()) bit in my theme's functions.php and it doesn't seem to work. The function containing this bit is called on init so is_home should work already.
0
votes
2answers
67 views
gform_after_submission content appears immediately after <body>, not in post body
I have the following function that successfully uses form fields (IDs 13 and 18) from a Gravity Form (ID 18) as parameters within wp_query.
This displays a list of posts with specific taxonomy terms ...
0
votes
2answers
52 views
Hook 'wp_enqueue_scripts' priority has no effect
In a theme I am working there are up to 3 Stylesheets. I am using the hook 'wp_enqueue_scripts'. The order of the stylesheets is important for overwriting styles.
I have a code like this:
...
0
votes
1answer
155 views
How to Debug the 'save_post' Action?
Is it possible to validate PHP code?
I have a Custom Post Type (Film) with Custom Meta Boxes.
Everything is working fine, I can add new Films and details to the Custom Meta Boxes.
My problem is ...
0
votes
2answers
77 views
About Hooks and Filters
Well, am having a very hard time understanding the difference between Actions and Filters. I do use actions in my code, but am a rookie and I don't know even a slightest bit of Filters.
I have been ...
0
votes
4answers
446 views
How to fix my old theme so it loads jQuery properly
I have an older theme that is loading jQuery 'manually', and this conflicts with all plugins that are trying to use jQuery.
The following lines are included in the theme header:
<script ...