When I update version of meta boxes in wordpress. I got this error.
Please solve this.
Fatal error: Call to undefined method RW_Meta_Box_User::get_fields() in /home/content/a2pnexwpnas03_data01/86/3452586/html/wp-content/plugins/roker-loader/meta-box/extensions/user_meta/meta_box_user.php on line 40
meta_box_user.php line 40:
// Add additional actions for fields
$fields = self::get_fields( $this->fields );
foreach ( $fields as $field )
{
call_user_func( array( self::get_class_name( $field ), 'add_actions' ) );
}
Unless you have defined
get_fields()
inRW_Meta_Box_User
, you may be looking forget_fields()
withoutself::
.Methods or members marked
self
must be defined inside the class you're using.