Tagged Questions
0
votes
2answers
55 views
How to hook into publish_posttype?
I'm trying to hook into WordPress publish. The code below is what I'm using, but it doesn't appear to be running. I have it in a plugin file that I deactivate/reactivate each time I make changes ...
1
vote
0answers
42 views
Copy post to separate database with “add_action(…)”
I'm basically trying to have a copy of a post be sent to another database's table when it's published. I've gotten it to add a new row in the new table, with my own static arguments, but I'm not sure ...
2
votes
1answer
269 views
In what sequence are the hooks fired when a post is “published”?
I would be grateful if someone could point out a link. I understand this may have a very lengthy answer but I searched and couldn't find any resource.
Alternatively, it would also be nice if someone ...
2
votes
1answer
777 views
Check before publishing, if already exist post with current custom field value
I have a custom post type with only 3 custom fields in it.
$post_types = get_post_meta($post->ID,'post_types',true);
$post_taxonomies = get_post_meta($post->ID,'post_taxonomies',true);
...
0
votes
1answer
1k views
add_action hook for publish_post not working
I can't get my function to trigger on post update or save. I've found a couple of other forum posts around with the same problem, but never an answer :(
My code is as simple as:
function ...
0
votes
2answers
406 views
Call php to generate file on user publish post? [closed]
I have a php script that will generate a text file based on the post ID passed into it. I have it set so that it will run when a user publishes a post, I know this is functioning because if I screw up ...
0
votes
1answer
237 views
run script on publish
I am trying to run a script when a user publishes / updates a post.
I am using the filter: wp_insert_post_data
The problem I am having is the script is a php file outside of WordPress but on the ...
