Home Forums Weaver and Plugin Interaction The filter of Weaver menus

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #17813
    Remus
    Participant

    Hello ! I use a plugin to lazy load images, Rocket Lazy Load. But it does not act on images from secondary and primary menus.

    The code is copied from the plugin .php file.
    Is there an identification string  for Weaver Xtreme menus like the bolded ones below, so I can modify the plugin to act also on the menus content ?
    Weaver II has the same string for menus ?

    Thank you !
    add_filter( ‘get_avatar‘, ‘rocket_lazyload_images’, PHP_INT_MAX );
    add_filter( ‘the_content‘, ‘rocket_lazyload_images’, PHP_INT_MAX );
    add_filter( ‘widget_text‘, ‘rocket_lazyload_images’, PHP_INT_MAX );
    add_filter( ‘post_thumbnail_html‘, ‘rocket_lazyload_images’, PHP_INT_MAX );
    #22250
    Weaver
    Keymaster

    That is really a question for the plugin, and is not really a theme question.

    But, ALL menus are run through a filter:

    $nav_menu = apply_filters( ‘wp_nav_menu’, $nav_menu, $args );

    I have no idea if that filter can be intercepted properly or not as it has 2 arguments – $nav_menu and $args. But that is not a theme related problem.

    #22251
    Remus
    Participant

    It seems the plugin author it’s not interested about this issue, that’s why I asked here some info.

    I will try it myself, thanks !
    EDIT
    I just added one more line with wp_nav_menu included… and it worked ! So simple 😉 
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘ Weaver and Plugin Interaction’ is closed to new topics and replies.