how to let wordpress add a whitelist that filters out onmouseover attribute
-
i tried to change my menu nav walker to add onmouseover attribute to post type so that it make ajax call to a php file in my folder,
however when it is outputted as html
the result that supposed to be
onmouseover=”jQuery(‘ajaxclass-1’).load(./product.php?prod=1)”
became
onmouseover=”jQuery(‘ajaxclass-‘).load(. product.php?prod=”1″”)”if($item->type_label=="Post"){ $attributes .= 'onmouseover="jQuery(\'.ajaxclass-'.url_to_postid($item->url).'").load("./product.php?prod=url_to_postid($item->url)'; }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘how to let wordpress add a whitelist that filters out onmouseover attribute’ is closed to new replies.