Redirect back to origin page after using get_delete_post_link()

Theres a filter you can hook on to. apply_filters( ‘get_delete_post_link’, wp_nonce_url( $delete_link, “$action-{$post->post_type}_{$post->ID}” ), $post->ID, $force_delete ); Check the raw function here: http://core.trac.wordpress.org/browser/tags/3.4.1/wp-includes/link-template.php#L954 Can’t advise much else without seeing your code. Edit: its nasty buy you can do add_filter( ‘get_delete_post_link’, ‘some_function’, 20 ); function some_function() { wp_redirect( home_url(“https://wordpress.stackexchange.com/”) ); exit; }

Which hook should be used in this case?

I believe it’s a simple difference, here; you are echoing with e() – try returning with _() instead: function custom_title_text( $title ){ return __( ‘Enter Name here’ ); } add_filter( ‘enter_title_here’, ‘custom_title_text’ );

Force resize for all video content

Without knowing more information – you can use CSS to set a max width to any element. iframe, object, embed { max-width:100%; } Rachel Baker mentioned Fitvids.JS in her WordCamp Chicago presentation last weekend. It is a Javascript plugin that writes specific code for the various video providers online. Try the CSS solution and fall … Read more

Looking for Hook that is fired after a plugin or wp upgrade is installed/updated

A chance is the update_feedback filter hook. He is usable after core and plugin update, I think. You can hook in and start your custom doing. See the follow example, but only a code for understand my bad english; he don’t work. add_filter( ‘update_feedback’, ‘fb_add_feedback’ ); function fb_add_feedback( $feedback ) { // start my custom … Read more

Query author’s posts & posts that have author’s id as meta value

Instead of a new WP_Query, use the pre_get_posts filter add_filter(‘pre_get_posts’, ‘custom_query’); function custom_query($query) { if($query->is_main_query() && $query->is_author() && $_GET[‘eco’]==’somemetakey’) { $query->set(‘meta_query’, array( array( ‘key’ => ‘somemetakey’, ‘value’ => $query->get(‘author’) ) )); } }

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