Return to Snippet

Revision: 52669
at October 29, 2011 01:50 by aquelito


Updated Code
// Remove attribut title
function opt_remove_title_attr($return){
$patterns = array(0=>'# title=\"(.?)\"#',1=>"# title='(.?)'#");
return preg_replace($patterns, '',$return);
}

add_filter('wp_nav_menu', 'opt_remove_title_attr');
add_filter('wp_page_menu', 'opt_remove_title_attr');
add_filter('wp_list_categories', 'opt_remove_title_attr');
add_filter('wp_list_pages', 'opt_remove_title_attr');
add_filter('wp_tag_cloud', 'opt_remove_title_attr');
add_filter('get_archives_link', 'opt_remove_title_attr');

Revision: 52668
at October 29, 2011 01:30 by aquelito


Initial Code
// Remove attribut title
function opt_remove_title_attr($return){
$patterns = array(0=>'# title=\"(.?)\"#',1=>"# title='(.?)'#");
return preg_replace($patterns, '',$return);
}

add_filter('wp_nav_menu', 'opt_remove_title_attr');
add_filter('wp_page_menu', 'opt_remove_title_attr'); add_filter('wp_list_categories', 'opt_remove_title_attr'); add_filter('wp_list_pages', 'opt_remove_title_attr');
add_filter('wp_tag_cloud', 'opt_remove_title_attr'); add_filter('get_archives_link', 'opt_remove_title_attr');

Initial URL


Initial Description


Initial Title
WordPress remove attribut title in link

Initial Tags
wordpress

Initial Language
PHP