{"id":39977,"date":"2015-11-06T02:37:19","date_gmt":"2015-11-06T02:37:19","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wishlist-member-show-all-levels\/"},"modified":"2016-05-26T01:30:57","modified_gmt":"2016-05-26T01:30:57","slug":"wishlist-member-show-all-levels","status":"publish","type":"plugin","link":"https:\/\/lt.wordpress.org\/plugins\/wishlist-member-show-all-levels\/","author":8798390,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.5.2","stable_tag":"1.5.2","tested":"4.5.33","requires":"4.0","requires_php":"","requires_plugins":"","header_name":"WishList Member: Show All Levels","header_author":"AndrewRMinion Design","header_description":"","assets_banners_color":"","last_updated":"2016-05-26 01:30:57","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/cash.me\/$AndrewRMinionDesign","header_plugin_uri":"https:\/\/github.com\/macbookandrew\/wishlist-member-show-all-levels","header_author_uri":"https:\/\/andrewrminion.com\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1990,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.1","1.1.1","1.2","1.2.1","1.4.1","1.4.2","1.5","1.5.1","1.5.2"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[24859,2108,1932,1666,9753],"plugin_category":[58],"plugin_contributors":[78963],"plugin_business_model":[],"class_list":["post-39977","plugin","type-plugin","status-publish","hentry","plugin_tags-authorized","plugin_tags-level","plugin_tags-membership","plugin_tags-wishlist","plugin_tags-wishlist-member","plugin_category-user-management","plugin_contributors-macbookandrew","plugin_committers-macbookandrew"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wishlist-member-show-all-levels.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>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.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install the plugin<\/li>\n<li>Use the shortcode <code>[wlm_all_authorized_levels]<\/code> to show all authorized levels for the logged-in user.<\/li>\n<li>See the <a href=\"faq\/\">FAQ<\/a> for more options.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Can I group pages by their level?<\/dt>\n<dd><p>Yes; use <code>[wlm_all_authorized_levels group_by_level=\"true\"]<\/code> to group by pages by each level and (by default) show each level\u2019s header.<\/p><\/dd>\n<dt>Can I hide the header?<\/dt>\n<dd><p>Yes; use <code>[wlm_all_authorized_levels show_header=\"false\"]<\/code> to hide the header of each level (only works with <code>group_by_level<\/code>).<\/p><\/dd>\n<dt>Can I ignore specific pages?<\/dt>\n<dd><p>Yes; get the IDs of those pages from the WordPress admin page and then add them to the shortcode separated by commas, like this: <code>[wlm_all_authorized_levels pages_to_ignore=\"151,20\"]<\/code>.<\/p>\n\n<p>You can also use the <code>wlm_authorized_pages_array<\/code> filter to modify the array; see below for an example.<\/p><\/dd>\n<dt>Can I include specific pages?<\/dt>\n<dd><p>Yes, you can include specific pages using the <code>pages_to_include<\/code> attribute like this: <code>[wlm_all_authorized_levels pages_to_include=\"151,20\"]<\/code>.<\/p>\n\n<p>You can also use the <code>wlm_authorized_pages_array<\/code> filter to modify the array:<\/p>\n\n<pre><code>add_filter( 'wlm_authorized_pages_array', 'tweak_wlm_pages' );\nfunction tweak_wlm_pages( $array ) {\n    \/\/ add a page\n    $array[] = $page_ID_to_add;\n\n    \/\/ remove a page\n    if ( $false !== ( $key = array_search( $page_ID_to_remove, $array ) ) ) {\n        unset( $array[$key] );\n    }\n\n    \/\/ return the modified array\n    return $array;\n}\n<\/code><\/pre><\/dd>\n<dt>Can I use a custom template?<\/dt>\n<dd><p>Not yet, but there are filters for every part of the output; here\u2019s a list of the available filters:<\/p>\n\n<ul>\n<li><code>wlm_authorized_post_types<\/code>: array of post types included in the WP_Query; defaults to <code>array( 'page' )<\/code><\/li>\n<li><code>wlm_all_levels_container_open<\/code>: wraps everything; defaults to <code>&lt;div class=\"wishlist-member-levels\"&gt;<\/code><\/li>\n<li><code>wlm_all_levels_container_close<\/code>: defaults to <code>&lt;\/div&gt;<\/code><\/li>\n<li><code>wlm_all_levels_level_wrapper_open<\/code>: wraps the entire list of items; defaults to <code>&lt;ul&gt;<\/code><\/li>\n<li><code>wlm_all_levels_level_wrapper_close<\/code>: defaults to <code>&lt;\/ul&gt;<\/code><\/li>\n<li><code>wlm_all_levels_item_wrapper_open<\/code>: wraps each item; defaults to <code>&lt;li<\/code> (no closing bracket)<\/li>\n<li><code>wlm_all_levels_item_wrapper_close<\/code>: defaults to <code>&lt;\/li&gt;<\/code><\/li>\n<li><code>wlm_all_levels_item_wrapper_class<\/code>: defaults to empty; space-separated list of classes to add to each item<\/li>\n<li><code>wlm_all_levels_item_link<\/code>: defalts to <code>&lt;a href=\"' . get_permalink() . '\"&gt;' . get_the_title() . '&lt;\/a&gt;<\/code>; the post ID is available as a parameter to your callback function<\/li>\n<li><code>wlm_no_authorized_levels_message<\/code>: defaults to <code>&lt;p&gt;Sorry, you are not authorized to access any content. Please &lt;a href=\"' . admin_url() . '\"&gt;log in&lt;\/a&gt;, check your subscription status, or contact us for more information.&lt;\/p&gt;<\/code>; shown when a user is not authorized for any WishList levels<\/li>\n<li><code>wlm_no_authorized_content_message<\/code>: defaults to <code>&lt;p&gt;Sorry, you are not authorized to access any content. Please &lt;a href=\"' . admin_url() . '\"&gt;log in&lt;\/a&gt;, check your subscription status, or contact us for more information.&lt;\/p&gt;<\/code>; shown when there are no pages available<\/li>\n<\/ul><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.5.2<\/h4>\n\n<ul>\n<li>Add filter for post types<\/li>\n<\/ul>\n\n<h4>1.5.1<\/h4>\n\n<ul>\n<li>Add login url to customer message<\/li>\n<\/ul>\n\n<h4>1.5<\/h4>\n\n<ul>\n<li>Add messages when no authorized levels or content is available to an end user<\/li>\n<\/ul>\n\n<h4>1.4.2<\/h4>\n\n<ul>\n<li>Update documentation<\/li>\n<\/ul>\n\n<h4>1.4.1<\/h4>\n\n<ul>\n<li>Add filter for modifying the array of pages before WP query<\/li>\n<\/ul>\n\n<h4>1.4<\/h4>\n\n<ul>\n<li>Major change: defaults to showing pages in one list rather than grouped by level<\/li>\n<li>Old behavior still available with the <code>group_by_level=\"true\"<\/code> attribute<\/li>\n<\/ul>\n\n<h4>1.3<\/h4>\n\n<ul>\n<li>Add filters for customizing the output<\/li>\n<\/ul>\n\n<h4>1.2.1<\/h4>\n\n<ul>\n<li>Add fix for edge case where levels with no protected pages would sometimes cause a white screen of death<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Use WP_Query to allow for better sorting<\/li>\n<\/ul>\n\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>Fix missing wrapper closing<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Add support for ignoring specific pages and removing the header<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial plugin<\/li>\n<\/ul>","raw_excerpt":"Provides a shortcode that outputs all levels a member is allowed to access.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/lt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/39977","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/lt.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/lt.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=39977"}],"author":[{"embeddable":true,"href":"https:\/\/lt.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/macbookandrew"}],"wp:attachment":[{"href":"https:\/\/lt.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=39977"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/lt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=39977"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/lt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=39977"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/lt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=39977"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/lt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=39977"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/lt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=39977"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}