# wp-insert/2.6.0/includes/modules/core/units/notes.php

Wp-Insert, version 2.6.0. 56 lines.

- Page: https://pluginprobe.com/plugins/wp-insert/2.6.0/code/includes/modules/core/units/notes.php
- Raw: https://pluginprobe.com/plugins/wp-insert/2.6.0/raw/includes/modules/core/units/notes.php
- Modified: 2026-07-30T22:30:58+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/wp-insert/2.6.0/code/includes/modules/core/units/notes.php#L10-L20`.

```php
<?php
function wp_insert_form_accordion_tabs_notes( $control, $identifier, $location ) {
	echo '<h3>Notes</h3>';
	echo '<div>';

		$title = $identifier;
	if ( ! isset( $control->values['title'] ) || ( $control->values['title'] == '' ) ) {
		switch ( $identifier ) {
			case 'above':
				$title = 'Above Post Content';
				break;
			case 'middle':
				$title = 'Middle of Post Content';
				break;
			case 'below':
				$title = 'Below Post Content';
				break;
			case 'left':
				$title = 'To the Left of Post Content';
				break;
			case 'right':
				$title = 'To the Right of Post Content';
				break;
			default:
				$title = $identifier;
				break;
		}
	} else {
		$title = $control->values['title'];
	}
		$control->add_control(
			[
				'type'       => 'text',
				'optionName' => 'title',
				'helpText'   => 'The title is used to identify your Ad Widget easily in future.  A Random Title will be assigned to your Ad widget by default.',
				'value'      => $title,
			]
		);
		$control->create_section( 'Title' );
		wp_insert_echo_html( $control->HTML );
		$control->clear_controls();

		$control->add_control(
			[
				'type'       => 'textarea',
				'optionName' => 'notes',
				'style'      => 'height: 220px;',
			]
		);
		$control->create_section( 'Notes' );
		wp_insert_echo_html( $control->HTML );
		$control->clear_controls();
	echo '</div>';
	return $control;
}

```
