How to set Media Box form elements default value?

Not sure about the title part, but you should be able to set some defaults for images using update_option(). You can try adding the following to your functions.php to set the default size to large – you should be able to take it back out after it’s been called once so you’re not updating the … Read more

wp_insert_post hook for a wordpress plugin

The right hook to use before inserting the post is wp_insert_post_data function tr_insert_post($data){ $post [‘post_title’] = “the title: “.$post [‘post_title’]; return $post; } add_action(‘wp_insert_post_data’, ‘tr_insert_post’,1,2); But I think that a better way to achieve that would be to save the post as is and translate later using a filter like the_content this way you save … Read more

How can I modify the header of RSS feed items?

this value comes from the template tag the_author(). You can also filter this. But it is important, that you check, that the filter only work on the feeds; see the follow example at the check for is_feed(). After this i change the autor name only, if the string has the value ‘name_xyz’; here is the … Read more

Bloginfo hook – can it be more precise?

You can access that, using the additional variable in the Filter Functions. The Filter bloginfo_url uses the $show parameter (the parameter you use when calling bloginfo) and passes it to apply_filters. So hooking into bloginfo_url should be no problem, you just have to make a switch inside the function, and it only applies to e.g. … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)