Making WordPress.org


Ignore:
Timestamp:
07/22/2016 06:12:05 PM (10 years ago)
Author:
coffee2code
Message:

Handbook plugin: Add wporg_is_handbook_landing_page() as a template tag to determine if the current page is the landing page for a handbook.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/template-tags.php

    r3698 r3712  
    7474
    7575/**
     76 * Is the current page acting as a handbook's landing page?
     77 *
     78 * @return bool True if the current page is the landing page for a handbook, false otherwise.
     79 */
     80 function wporg_is_handbook_landing_page() {
     81     return get_query_var( 'is_handbook_root' );
     82 }
     83
     84/**
    7685 * Is the current (or specified) post_type a handbook post type?
    7786 *
Note: See TracChangeset for help on using the changeset viewer.