function.php dosyasında

$listing_custom_fields = array();
.598 satır foreach ( $custom_options_order['et_custom_options'] as $custom_option_title ){
$required = isset( $custom_options[$custom_option_title]['required'] ) && 'on' == $custom_options[$custom_option_title]['required'] ? true : false;
$listing_custom_fields[$custom_option_title] = array(
'name' => esc_html( $custom_options[$custom_option_title]['title'] ),
'field' => substr( $custom_option_title, 0, strpos( $custom_option_title, '-' ) ),
'required' => $required
);
}

Warning: Invalid argument supplied for foreach() in /home/seosil/public_html/wp-content/themes/selin/functions.php on line 598

Required fields are marked * diye hata alıyorum yardımcı olabilecek php uzmanları

Birde yine function.php 293 satırda aynı hata

foreach( $custom_options_order['et_custom_options'] as $rendered_option_name ) { ?>
$et_rendered_field_name = substr( $rendered_option_name, 0, strpos( $rendered_option_name, '-' ) );
$et_rendered_field_number = substr( $rendered_option_name, strpos( $rendered_option_name, '-' ) + 1, strlen( $rendered_option_name ) );
?>