I would like to add a 'link_before'
control for a wp_nav_menu()
, like that:
if ( strpos( $args->link_before, 'checkbox' ) == true ) {
$args->link_before = '<input id="toggle' . $item->ID . '" type="checkbox" /> <label for="toggle' . $item->ID . '">';
}
To use the "checkbox before the link" trick in some menu.
How can I do that? Is it possible with "functions.php?