How to filter or remove the “title” attribute from category links

If you use the category_description filter hook you can replace the title attribute for example: function my_cat_title($category_description,$category){ return ”; } add_filter(‘category_description’,’my_cat_title’); $cat_args = array(‘orderby’ => ‘name’); $cat_args[‘title_li’] = ”; $cat_args[‘exclude_tree’] = my_cat(); wp_list_categories(apply_filters(‘widget_categories_args’, $cat_args)); remove_filter(‘category_description’,’my_cat_title’);

attachment.php code or tutorial

This is part of the WordPress template system, it allows you to drill down and further customize output based in the template hierarchy, for instance if you want the attachments to have separate functionality/style then your single.php, you simply create attachment.php or go even further with MIME_type.php (like images). http://codex.wordpress.org/images/1/18/Template_Hierarchy.png Also you have 4 url … Read more

Pass variable to hook. Its possible?

Ok i can pass variables to hook but i was doing it wrong. Code should be: function encrypt_password_function($pass, $id){ global $wpdb; $encrypted=sha1($pass); $wpdb->query($wpdb->prepare(“UPDATE wp_users SET iphone_pass = %s WHERE ID = %d”,array($encrypted, ’10’))); } function encrypt_password($var1, $var2) { do_action(‘encrypt_password’,$var1, $var2); } add_action(‘encrypt_password’, ‘encrypt_password_function’, 1,2);