defaults = array( 'title' => __( 'Profile', $this->domain ), 'template' => '
', ); $this->WP_Widget( 'author-profile-widget-profile', __( 'Author profile', $this->domain ), array( 'classname' => 'author-profile-widget-profile', 'description' => __( 'Author profile', $this->domain ) ) ); } /** * form * @param array $instance */ public function form( $instance ) { $instance = $this->_parse_options( $instance ); ?>get_field_id( 'title' ); $title_name = $this->get_field_name( 'title' ); ?>
get_field_id( 'template' );
$user_name = $this->get_field_name( 'template' );
?>
the_author_meta" field. e.g {user_login}', $this->domain ); ?>
domain ); ?>