_notices = WOODMART_Registry()->notices; $this->_options = woodmart_get_config( 'wpbcss-parts' ); } private function _get_options_from_section( $section ) { return array_filter( $this->_options, function( $el ) use ( $section ) { return $el['section'] == $section; } ); } private function _checked( $opt ) { $checked = $opt['checked']; if ( isset( $_POST['generate-css'] ) ) { $checked = isset( $_POST[ $opt['id'] ] ) && $_POST[ $opt['id'] ]; } $css_data = $this->_get_data(); if ( ! empty( $css_data ) && is_array( $css_data ) ) { $checked = isset( $css_data[ $opt['id'] ] ) && $css_data[ $opt['id'] ]; } checked( $checked ); } private function _render_option( $opt ) { ?>