• Resolved stefandev

    (@stefandev)


    Hello,

    First of all, I must say that it’s a great plugin!

    However, I’m experiencing an issue with changing display hooks. When I change the “before title” hook, it results in the label being displayed twice – once in the original position and again in the new position. Is there a way to remove original “before title” hook using code?

    I noticed there is an option to “Turn off all display hooks,” but I specifically need to modify the “before title” hook.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author ILLID

    (@mihail-barinov)

    Hi,

    Perhaps the better way for you is to use php snippets to change these hooks instead. Here is some example:

    add_filter( 'awl_labels_hooks', 'my_awl_labels_hooks' );
    function my_awl_labels_hooks( $hooks ) {
        $hooks['before_title']['archive'] = array( 'woocommerce_before_shop_loop_item_title' => array( 'priority' => 20 ) );
        return $hooks;
    }

    Regards

    Thread Starter stefandev

    (@stefandev)

    Great! Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Issue with Changing display hooks’ is closed to new replies.