Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

replace class

// ph means placeholder which will be use as a demo name.
// replace class with has-children instead of menu-item-has-children
$ph = str_replace('menu-item-has-children', 'has-children', $ph);
 
PREVIOUS NEXT
Tagged: #replace #class
ADD COMMENT
Topic
Name
7+6 =