/** * Return translated context labels * * @return array Context label translations */ public function get_context_labels() { $context_labels = array(); if (class_exists('Connector_Posts')) { $posts_connector = new Connector_Posts(); $context_labels = array_merge($context_labels, $posts_connector->get_context_labels()); } $custom_context_labels = array('attributes' => esc_html_x('Attributes', 'woocommerce', 'stream')); $context_labels = array_merge($context_labels, $custom_context_labels, $this->settings_pages); return apply_filters('wp_stream_woocommerce_contexts', $context_labels); }