WP_Widget_Text::is_legacy_instance( array $instance )
Determines whether a given instance is legacy and should bypass using TinyMCE.
Parameters
- $instance
-
(Required) Instance data.<br>
- 'text'
(string) Content.<br> - 'filter'
(bool|string) Whether autop or content filters should apply.<br> - 'legacy'
(bool) Whether widget is in legacy mode.<br>
- 'text'
Return
(bool) Whether Text widget instance contains legacy data.
Source
File: wp-includes/widgets/class-wp-widget-text.php
Changelog
Version | Description |
---|---|
4.8.1 | Introduced. |