Support » Plugin: Useful Banner Manager » small change for make plugin more user friendly

  • Yuri

    (@bestlion)


    in useful-banner-manager.php change this line:
    $banners_ids_where = "id IN (" . implode( ',', $banners_ids ) . ") AND ";
    to
    $banners_ids_where = "(id IN ('" . implode( '\',\'', $banners_ids ) . "') OR banner_title IN ('". implode( '\',\'', $banners_ids ) . "')) AND ";

    this change allow select banners by title for call they as:
    useful_banner_manager_banners( 'topBanner', 1 );

  • The topic ‘small change for make plugin more user friendly’ is closed to new replies.