# darkify/1.5.1/src/Admin/Framework/functions/walker.php

Darkify – Dark Mode &amp; Night Mode for Website &amp; Admin (Dark Theme Included), version 1.5.1. 27 lines.

- Page: https://pluginprobe.com/plugins/darkify/1.5.1/code/src/Admin/Framework/functions/walker.php
- Raw: https://pluginprobe.com/plugins/darkify/1.5.1/raw/src/Admin/Framework/functions/walker.php
- Modified: 2026-05-04T09:54:44+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/darkify/1.5.1/code/src/Admin/Framework/functions/walker.php#L10-L20`.

```php
<?php if ( ! defined( 'ABSPATH' ) ) {
	die; } // Cannot access directly.
/**
 *
 * Custom Walker for Nav Menu Edit
 *
 * @since 1.0.0
 * @version 1.0.0
 */
if ( ! class_exists( 'DARKIFY_Walker_Nav_Menu_Edit' ) && class_exists( 'Walker_Nav_Menu_Edit' ) ) {
	class DARKIFY_Walker_Nav_Menu_Edit extends Walker_Nav_Menu_Edit {

		public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {

			$html = '';

			parent::start_el( $html, $item, $depth, $args, $id );

			ob_start();
			do_action( 'wp_nav_menu_item_custom_fields', $item->ID, $item, $depth, $args );
			$custom_fields = ob_get_clean();

			$output .= preg_replace( '/(?=<(fieldset|p)[^>]+class="[^"]*field-move)/', $custom_fields, $html );
		}
	}
}

```
