How would I correctly implement a new if statement in a child functions file?

you put a , instead of ; at end of $advert_details. you will better see this kind of error if you better indent the code. add_action(‘wp_enqueue_scripts’, ‘theme_enqueue_styles’, 12); function theme_enqueue_styles() { wp_enqueue_style(‘parent-style’, get_template_directory_uri() . ‘/style.css’); } if (!function_exists(‘adifier_custom_meta’)) { function adifier_custom_meta() { $meta_boxes = array(); $advert_details = array( array( ‘id’ => ‘advert_cond’, ‘name’ => esc_html__( … Read more