• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WordPress core a2z

WordPress core a2z

WordPress core only

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / WP_Widget_Meta::form() – Outputs the settings form for the Meta widget.

You appear to be a bot. Output may be restricted

Description

Outputs the settings form for the Meta widget.

Usage

WP_Widget_Meta::form( $instance );

Parameters

$instance
( array ) required – Current settings.

Returns

void

Source

File name: wordpress/wp-includes/widgets/class-wp-widget-meta.php
Lines:

1 to 9 of 9
  public function form( $instance ) {
    $instance = wp_parse_args( (array) $instance, array( 'title' => '' ) );
    ?>
		<p>
			<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ); ?></label>
			<input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $instance['title'] ); ?>" />
		</p>
		<?php
  }
 

 View on GitHub View on Trac

Published: 25th November 2019 | Last updated: 21st August 2020

Primary Sidebar

Information

Function name: WP_Widget_Meta::form
Class ref: WP_Widget_Meta
Plugin ref: WordPress
Version: 5.6
Sourcefile: wp-includes/widgets/class-wp-widget-meta.php
File ref: wp-includes/widgets/class-wp-widget-meta.php
Deprecated?: No
API Letters: F,M,W

Footer

WP-a2z
WordPress core a2z
WordPress core only
WordPress 5.6
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  core.wp-a2z.org
© Copyright WP-a2z 2014-2021. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites