10, 'type' => 'filter', 'callback' => array( $this, 'wp_get_attachment_image' ) ); $hooks['before_title']['archive']['uagb_single_post_before_title_grid'] = array( 'priority' => 10 ); $hooks['before_title']['archive']['uagb_single_post_before_title_carousel'] = array( 'priority' => 10 ); return $hooks; } public function before_article() { $this->data['is_spectra'] = true; } public function after_article() { $this->data['is_spectra'] = false; } /* * Add label on image */ public function wp_get_attachment_image( $html ) { if ( isset( $this->data['is_spectra'] ) && $this->data['is_spectra'] ) { $html = $html . AWL_Label_Display::instance()->show_label( 'on_image' ); } return $html; } /* * Add styles for blocks */ public function add_styles() { ?>