WPDev.one
Core Function
View Source on Trac ↗

wp_render_widget()

wp_render_widget( mixed $widget_id, mixed $sidebar_id )

Calls the render callback of a widget and returns the output.

Parameters 2 required

Name / Type Description
$widget_id
string

Widget ID.

Required
$sidebar_id
string

Sidebar ID.

Required

Return Value

(string)
string

Function Information

Since Version
5.8.0
Source File
wp-includes/widgets.php
Advertisement