19 ); $hooks['before_title']['archive']['kadence_blocks_post_loop_header'] = array( 'priority' => 19 ); $hooks['on_image']['archive']['post_thumbnail_html'] = array( 'priority' => 10, 'type' => 'filter', 'callback' => array( $this, 'post_thumbnail_html' ), 'args' => 4 ); return $hooks; } /* * Display on_image labels */ public function post_thumbnail_html( $html, $post_id, $post_thumbnail_id, $size ) { if ( isset( $this->data['is_grid_block'] ) && $this->data['is_grid_block'] ) { $html = $html . AWL_Label_Display::instance()->show_label( 'on_image' ); $this->data['is_grid_block'] = false; } return $html; } public function kadence_is_block() { $this->data['is_grid_block'] = true; } } endif; AWL_Kadence::instance();