Title: WP_Widget_Area_Customize_Control::render_content
Published: April 25, 2014
Last modified: August 20, 2026

---

# WP_Widget_Area_Customize_Control::render_content()

## In this article

 * [Source](https://developer.wordpress.org/reference/classes/wp_widget_area_customize_control/render_content/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/classes/wp_widget_area_customize_control/render_content/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/classes/wp_widget_area_customize_control/render_content/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/classes/wp_widget_area_customize_control/render_content/?output_format=md#wp--skip-link--target)

Renders the control’s content.

## 󠀁[Source](https://developer.wordpress.org/reference/classes/wp_widget_area_customize_control/render_content/?output_format=md#source)󠁿

    ```php
    public function render_content() {
    	$id = 'reorder-widgets-desc-' . str_replace( array( '[', ']' ), array( '-', '' ), $this->id );
    	?>
    	<button type="button" class="button add-new-widget" aria-expanded="false" aria-controls="available-widgets">
    		<?php _e( 'Add a Widget' ); ?>
    	</button>
    	<button type="button" class="button-link reorder-toggle" aria-label="<?php esc_attr_e( 'Reorder widgets' ); ?>" aria-describedby="<?php echo esc_attr( $id ); ?>">
    		<span class="reorder"><?php _e( 'Reorder' ); ?></span>
    		<span class="reorder-done"><?php _e( 'Done' ); ?></span>
    	</button>
    	<p class="screen-reader-text" id="<?php echo esc_attr( $id ); ?>">
    		<?php
    		/* translators: Hidden accessibility text. */
    		_e( 'When in reorder mode, additional controls to reorder widgets will be available in the widgets list above.' );
    		?>
    	</p>
    	<?php
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/customize/class-wp-widget-area-customize-control.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-includes/customize/class-wp-widget-area-customize-control.php#L53)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/customize/class-wp-widget-area-customize-control.php#L53-L70)

## 󠀁[Related](https://developer.wordpress.org/reference/classes/wp_widget_area_customize_control/render_content/?output_format=md#related)󠁿

| Uses | Description | 
| [esc_attr_e()](https://developer.wordpress.org/reference/functions/esc_attr_e/)`wp-includes/l10n.php` |

Displays translated text that has been escaped for safe use in an attribute.

  | 
| [_e()](https://developer.wordpress.org/reference/functions/_e/)`wp-includes/l10n.php` |

Displays translated text.

  | 
| [esc_attr()](https://developer.wordpress.org/reference/functions/esc_attr/)`wp-includes/formatting.php` |

Escaping for HTML attributes.

  |

[Show 1 more](https://developer.wordpress.org/reference/classes/wp_widget_area_customize_control/render_content/?output_format=md#)
[Show less](https://developer.wordpress.org/reference/classes/wp_widget_area_customize_control/render_content/?output_format=md#)

## 󠀁[Changelog](https://developer.wordpress.org/reference/classes/wp_widget_area_customize_control/render_content/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.9.0](https://developer.wordpress.org/reference/since/3.9.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwp_widget_area_customize_control%2Frender_content%2F)
before being able to contribute a note or feedback.