Title: WishList Member: Show All Levels
Author: macbookandrew
Published: <strong>November 6, 2015</strong>
Last modified: May 26, 2016

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/wishlist-member-show-all-levels.svg)

# WishList Member: Show All Levels

 By [macbookandrew](https://profiles.wordpress.org/macbookandrew/)

[Download](https://downloads.wordpress.org/plugin/wishlist-member-show-all-levels.1.5.2.zip)

 * [Details](https://wordpress.org/plugins/wishlist-member-show-all-levels/#description)
 * [Reviews](https://wordpress.org/plugins/wishlist-member-show-all-levels/#reviews)
 *  [Installation](https://wordpress.org/plugins/wishlist-member-show-all-levels/#installation)
 * [Development](https://wordpress.org/plugins/wishlist-member-show-all-levels/#developers)

 [Support](https://wordpress.org/support/plugin/wishlist-member-show-all-levels/)

## Description

Have you ever wanted a way to show all the content a member is allowed to access?
This plugin gives you a simple shortcode that lists all the pages a user is allowed
to access, grouped by level.

## Installation

 1. Install the plugin
 2. Use the shortcode `[wlm_all_authorized_levels]` to show all authorized levels for
    the logged-in user.
 3. See the [FAQ](https://wordpress.org/plugins/wishlist-member-show-all-levels/faq/?output_format=md)
    for more options.

## FAQ

  Can I group pages by their level?

Yes; use `[wlm_all_authorized_levels group_by_level="true"]` to group by pages by
each level and (by default) show each level’s header.

  Can I hide the header?

Yes; use `[wlm_all_authorized_levels show_header="false"]` to hide the header of
each level (only works with `group_by_level`).

  Can I ignore specific pages?

Yes; get the IDs of those pages from the WordPress admin page and then add them 
to the shortcode separated by commas, like this: `[wlm_all_authorized_levels pages_to_ignore
="151,20"]`.

You can also use the `wlm_authorized_pages_array` filter to modify the array; see
below for an example.

  Can I include specific pages?

Yes, you can include specific pages using the `pages_to_include` attribute like 
this: `[wlm_all_authorized_levels pages_to_include="151,20"]`.

You can also use the `wlm_authorized_pages_array` filter to modify the array:

    ```
    add_filter( 'wlm_authorized_pages_array', 'tweak_wlm_pages' );
    function tweak_wlm_pages( $array ) {
        // add a page
        $array[] = $page_ID_to_add;

        // remove a page
        if ( $false !== ( $key = array_search( $page_ID_to_remove, $array ) ) ) {
            unset( $array[$key] );
        }

        // return the modified array
        return $array;
    }
    ```

  Can I use a custom template?

Not yet, but there are filters for every part of the output; here’s a list of the
available filters:

 * `wlm_authorized_post_types`: array of post types included in the WP_Query; defaults
   to `array( 'page' )`
 * `wlm_all_levels_container_open`: wraps everything; defaults to `<div class="wishlist-
   member-levels">`
 * `wlm_all_levels_container_close`: defaults to `</div>`
 * `wlm_all_levels_level_wrapper_open`: wraps the entire list of items; defaults
   to `<ul>`
 * `wlm_all_levels_level_wrapper_close`: defaults to `</ul>`
 * `wlm_all_levels_item_wrapper_open`: wraps each item; defaults to `<li` (no closing
   bracket)
 * `wlm_all_levels_item_wrapper_close`: defaults to `</li>`
 * `wlm_all_levels_item_wrapper_class`: defaults to empty; space-separated list 
   of classes to add to each item
 * `wlm_all_levels_item_link`: defalts to `<a href="' . get_permalink() . '">' .
   get_the_title() . '</a>`; the post ID is available as a parameter to your callback
   function
 * `wlm_no_authorized_levels_message`: defaults to `<p>Sorry, you are not authorized
   to access any content. Please <a href="' . admin_url() . '">log in</a>, check
   your subscription status, or contact us for more information.</p>`; shown when
   a user is not authorized for any WishList levels
 * `wlm_no_authorized_content_message`: defaults to `<p>Sorry, you are not authorized
   to access any content. Please <a href="' . admin_url() . '">log in</a>, check
   your subscription status, or contact us for more information.</p>`; shown when
   there are no pages available

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“WishList Member: Show All Levels” is open source software. The following people
have contributed to this plugin.

Contributors

 *   [ macbookandrew ](https://profiles.wordpress.org/macbookandrew/)

[Translate “WishList Member: Show All Levels” into your language.](https://translate.wordpress.org/projects/wp-plugins/wishlist-member-show-all-levels)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/wishlist-member-show-all-levels/),
check out the [SVN repository](https://plugins.svn.wordpress.org/wishlist-member-show-all-levels/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/wishlist-member-show-all-levels/)
by [RSS](https://plugins.trac.wordpress.org/log/wishlist-member-show-all-levels/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.5.2

 * Add filter for post types

#### 1.5.1

 * Add login url to customer message

#### 1.5

 * Add messages when no authorized levels or content is available to an end user

#### 1.4.2

 * Update documentation

#### 1.4.1

 * Add filter for modifying the array of pages before WP query

#### 1.4

 * Major change: defaults to showing pages in one list rather than grouped by level
 * Old behavior still available with the `group_by_level="true"` attribute

#### 1.3

 * Add filters for customizing the output

#### 1.2.1

 * Add fix for edge case where levels with no protected pages would sometimes cause
   a white screen of death

#### 1.2

 * Use WP_Query to allow for better sorting

#### 1.1.1

 * Fix missing wrapper closing

#### 1.1

 * Add support for ignoring specific pages and removing the header

#### 1.0

 * Initial plugin

## Meta

 *  Version **1.5.2**
 *  Last updated **10 years ago**
 *  Active installations **10+**
 *  WordPress version ** 4.0 or higher **
 *  Tested up to **4.5.33**
 * Tags
 * [Authorized](https://wordpress.org/plugins/tags/authorized/)[level](https://wordpress.org/plugins/tags/level/)
   [membership](https://wordpress.org/plugins/tags/membership/)[Wishlist](https://wordpress.org/plugins/tags/wishlist/)
   [Wishlist Member](https://wordpress.org/plugins/tags/wishlist-member/)
 *  [Advanced View](https://wordpress.org/plugins/wishlist-member-show-all-levels/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/wishlist-member-show-all-levels/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/wishlist-member-show-all-levels/reviews/)

## Contributors

 *   [ macbookandrew ](https://profiles.wordpress.org/macbookandrew/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/wishlist-member-show-all-levels/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://cash.me/$AndrewRMinionDesign)