10, 'type' => 'filter', 'callback' => array( $this, 'wp_get_attachment_image' ) ); $hooks['on_image']['archive_avada']['post_thumbnail_html'] = array( 'priority' => 10, 'type' => 'filter', 'callback' => array( $this, 'wp_get_attachment_image' ) ); $hooks['on_image']['archive_avada']['fusion_element_post_card_image_content'] = array( 'priority' => 10, 'type' => 'filter' ); $hooks['before_title']['archive_avada']['fusion_element_title_content'] = array( 'priority' => 10, 'type' => 'filter', 'callback' => array( $this, 'fusion_element_title_content' ) ); return $hooks; } /* * Add label on image */ public function wp_get_attachment_image( $html ) { $is_avada_block = false; foreach ( debug_backtrace() as $trace_part ) { if ( isset( $trace_part['function'] ) && ( 'avada_first_featured_image_markup' === $trace_part['function'] || 'fusion_render_first_featured_image_markup' === $trace_part['function'] ) ) { $is_avada_block = true; break; } } if ( $is_avada_block ) { $html = $html . AWL_Label_Display::instance()->show_label( 'on_image' ); } return $html; } /* * Add label before title */ public function fusion_element_title_content( $html ) { $html = '