WP_Comment::to_array()
Converts object to array.
Method of the class: WP_Comment{}
No Hooks.
Return
Array
. Object as array.
Usage
$WP_Comment = new WP_Comment(); $WP_Comment->to_array();
Changelog
Since 4.4.0 | Introduced. |
WP_Comment::to_array() WP Comment::to array code WP 6.5.2
public function to_array() { return get_object_vars( $this ); }