bbPress Help Club
  • Answers
  • Ask Question
  • Plugins
  • Forums
  • Blog

Topics Freshness

  • Club»
  • Forums»
  • Topics Freshness
Viewing 8 topics - 1 through 8 (of 8 total)
    • Topic
    • Voices
    • Replies
    • Last Post
    • Displaying Freshness time with different languages

      Started by: shinny0129 in: Development

    • 2
    • 7
    • 5 days, 8 hours ago

      shinny0129

    • Read before posting

      Started by: Milan Petrovic in: bbPress

    • 1
    • 0
    • 1 year, 4 months ago

      Milan Petrovic

    • Read before posting

      Started by: Milan Petrovic in: Themes

    • 1
    • 0
    • 1 year, 4 months ago

      Milan Petrovic

    • Read before posting

      Started by: Milan Petrovic in: Plugins

    • 1
    • 0
    • 1 year, 4 months ago

      Milan Petrovic

    • Read before posting

      Started by: Milan Petrovic in: Development

    • 1
    • 0
    • 1 year, 4 months ago

      Milan Petrovic

    • Read before posting

      Started by: Milan Petrovic in: Troubleshooting

    • 1
    • 0
    • 1 year, 4 months ago

      Milan Petrovic

    • General Forums Rules

      Started by: Milan Petrovic in: Introduction

    • 1
    • 0
    • 1 year, 4 months ago

      Milan Petrovic

    • bbHelp Club Forum is now open!

      Started by: Milan Petrovic in: Introduction

    • 1
    • 0
    • 1 year, 6 months ago

      Milan Petrovic

  •  

Viewing 8 topics - 1 through 8 (of 8 total)

Forum Statistics

Users
43,612
Forums
6
Topics
8
Open Topics
8
Hidden Topics
0
Closed Topics
0
Posts
15
Replies
7
Hidden Replies
0
Topic Tags
3
Empty Topic Tags
0

Topics Views List

  • Latest topics
  • Most popular topics
  • Topics with no replies
  • Topics with most replies
  • Topics Freshness
  • New posts since last visit
  • New posts: Last day
  • New posts: Last three days
  • New posts: Last week
  • New posts: Last month

Powered by

This forum is powered by bbPress and enhanced with GD bbPress Toolbox Pro: signatures, report, thanks, quote, BBCodes, attachments, privacy and much more

GD bbPress Toolbox Pro - Enhancing WordPress forums powered by bbPress

Latest from the Blog

bbPress Under the Hood: Theme Packages

March 8, 2019, By Milan Petrovic

To display the content for forums, bbPress relies on the theme templates. But, these are specialized template, and most themes don’t have them. So, how the bbPress uses templates?

bbPress Under the Hood: Theme Compatibility System

March 1, 2019, By Milan Petrovic

bbPress requires theme templates to display the forums content. Currently, bbPress needs total of 16 theme templates for all content types and taxonomies.

Blog Categories

  • Announcement (1)
  • Tutorials (4)
  • Website (2)

Terms List

  • Custom Code (1)
  • Templates (3)
  • Theme Package (1)
  • Under The Hood (2)
  • Website (1)

My Profile

Login and Registration

Log In · Register
Help
  • Answers
  • Ask Question
  • Plugins
  • Forums
  • Search
Blog
  • bbPress
  • Plugins
  • Themes
  • WordPress
  • And more...
More
  • About
  • Subscribe
  • Newsletters
  • Contact Us
Stay Connected

Get all the latest news.

Newsletter

Subscribe to get all the latest news and articls.

Subscribe We will not send you any spam.
Newsletters are sent every Tuesday.
About Contact Us Terms and Conditions Privacy Policy © 2009-2018 bbHelp Club − project by Golden Dragon WebStudio and Dev4Press

Select what type of content you want to search through. For detailed search of the community forums, visit the forum Advanced Search page.

  • Basics
  • Request
  • Query
  • Content
  • bbPress
  • Cache
Debug mode problems
WP_DEBUG
Debug mode is not enabled. Most of the debug related information is not available. More Information
SAVEQUERIES
Saving of SQL queries is not enabled. SQL queries debug is not available. More Information
WordPress
NameValue
Version5.3
Page Loading Stats
NameValue
PHP Memory Used16.58 MB
PHP Memory Available768MB
Total Page Time0.35457 seconds
Number of SQL Queries110
Executed Hooks6282
Upload Directory
NameValue
path
/home/bbhelp/public_html/wp-content/uploads/2019/12
url
https://bbhelp.club/wp-content/uploads/2019/12
subdir
/2019/12
basedir
/home/bbhelp/public_html/wp-content/uploads
baseurl
https://bbhelp.club/wp-content/uploads
error
FALSE
Page Scope
NameValue
is_multisite
FALSE
is_frontend
TRUE
is_admin
FALSE
is_blog_admin
FALSE
is_user_admin
FALSE
is_network_admin
FALSE
is_master_network_admin
TRUE
is_multisite_blog_admin
FALSE
blog_id
1
scope
blog
Load Snapshots
NameMemoryTimerSQLHooks
_start9.13 MB0.16523203514
plugins_loaded12 MB0.20375355104
setup_theme12.02 MB0.20505355106
after_setup_theme12.32 MB0.21009355196
init13.89 MB0.23950365526
wp15.68 MB0.27052436208
wp_head15.92 MB0.28460496282
wp_footer16.58 MB0.352601106282
_end16.58 MB0.354571106282
Request
NameValue
Method
GET
Scheme
HTTPS
URL
https://bbhelp.club/forums/view/topics-freshness
NameValue
Host
bbhelp.club
Path
/forums/view/topics-freshness/
Query
EMPTY
Page Request
Request
forums/view/topics-freshness
Matched Rewrite Rule
forums/view/([^/]+)/?$
Matched Rewrite Query
bbp_view=topics-freshness
Loaded Template
single-view.php
IP's from $_SERVER
NameValue
HTTP_X_REAL_IP
3.95.131.208
REMOTE_ADDR
3.95.131.208
SERVER_ADDR
37.60.233.106
Request Headers
NameValue
HOST
bbhelp.club
X_REAL_IP
3.95.131.208
X_FORWARDED_PROTO
https
ACCEPT_ENCODING
gzip
CONNECTION
close
USER_AGENT
CCBot/2.0 (https://commoncrawl.org/faq/)
ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
ACCEPT_LANGUAGE
en-US,en;q=0.5
X_HTTPS
1
Response Headers
NameValue
X-XSS-Protection
1; mode=block; report=https://bbhelp.club?gdsec-xxp-report;
Set-Cookie
wp_gdbbx_online_activity=1447-1576093414-4733; expires=Wed, 11-Dec-2019 19:46:34 GMT; Max-Age=180; path=/
Content-Type
text/html; charset=UTF-8
Expires
Wed, 11 Jan 1984 05:00:00 GMT
Cache-Control
no-cache, must-revalidate, max-age=0
Link
; rel="https://api.w.org/"
Query Conditionals
NameValue
Query Variables
$wp_query->query
NameValue
bbp_view
topics-freshness
$wp_query->tax_query
NameValue
queries
· · · · ·(Array, 0 elements)
Empty Array
relation
AND
queried_terms
· · · · ·(Array, 0 elements)
Empty Array
primary_table
wp_posts
primary_id_column
ID
$wp_query->meta_query
NameValue
queries
· · · · ·(Array, 0 elements)
Empty Array
relation
NULL
meta_table
NULL
meta_id_column
NULL
primary_table
NULL
primary_id_column
NULL
Executed SQL Query
SELECT 
  SQL_CALC_FOUND_ROWS wp_posts.ID 
FROM 
  wp_posts 
WHERE 
  1 = 1 
  AND wp_posts.post_type = 'post' 
  AND (
    wp_posts.post_status = 'publish' 
    OR wp_posts.post_status = 'closed' 
    OR wp_posts.post_status = 'paused' 
    OR wp_posts.post_status = 'active' 
    OR wp_posts.post_status = 'queued' 
    OR wp_posts.post_status = 'finished' 
    OR wp_posts.post_status = 'autoresponder'
  ) 
ORDER BY 
  wp_posts.post_date DESC 
LIMIT 
  0, 5
Complete WP Query object
· · · · ·(Object, WP_Query, 55 properties)
query(Array, 1 elements)
bbp_view(String, 16 characters)topics-freshness
query_vars(Array, 65 elements)
bbp_view(String, 16 characters)topics-freshnesserror(String, 0 characters)m(String, 0 characters)p(Integer)0post_parent(String, 0 characters)subpost(String, 0 characters)subpost_id(String, 0 characters)attachment(String, 0 characters)attachment_id(Integer)0name(String, 0 characters)pagename(String, 0 characters)page_id(Integer)0second(String, 0 characters)minute(String, 0 characters)hour(String, 0 characters)day(Integer)0monthnum(Integer)0year(Integer)0w(Integer)0category_name(String, 0 characters)tag(String, 0 characters)cat(String, 0 characters)tag_id(String, 0 characters)author(String, 0 characters)author_name(String, 0 characters)feed(String, 0 characters)tb(String, 0 characters)paged(Integer)0meta_key(String, 0 characters)meta_value(String, 0 characters)preview(String, 0 characters)s(String, 0 characters)sentence(String, 0 characters)title(String, 0 characters)fields(String, 0 characters)menu_order(String, 0 characters)embed(String, 0 characters)category__in(Array, 0 elements)
Empty Array
category__not_in(Array, 0 elements)
Empty Array
category__and(Array, 0 elements)
Empty Array
post__in(Array, 0 elements)
Empty Array
post__not_in(Array, 0 elements)
Empty Array
post_name__in(Array, 0 elements)
Empty Array
tag__in(Array, 0 elements)
Empty Array
tag__not_in(Array, 0 elements)
Empty Array
tag__and(Array, 0 elements)
Empty Array
tag_slug__in(Array, 0 elements)
Empty Array
tag_slug__and(Array, 0 elements)
Empty Array
post_parent__in(Array, 0 elements)
Empty Array
post_parent__not_in(Array, 0 elements)
Empty Array
author__in(Array, 0 elements)
Empty Array
author__not_in(Array, 0 elements)
Empty Array
ignore_sticky_posts(Boolean)FALSEsuppress_filters(Boolean)FALSEcache_results(Boolean)TRUEupdate_post_term_cache(Boolean)TRUElazy_load_term_meta(Boolean)TRUEupdate_post_meta_cache(Boolean)TRUEpost_type(String, 0 characters)posts_per_page(Integer)5nopaging(Boolean)FALSEcomments_per_page(String, 2 characters)50no_found_rows(Boolean)FALSEorder(String, 4 characters)DESC_bbp_query_name(String, 0 characters)
tax_query(Object, WP_Tax_Query, 5 properties)
queries(Array, 0 elements)
Empty Array
relation(String, 3 characters)AND*table_aliases(Array, 0 elements)
Empty Array
queried_terms(Array, 0 elements)
Empty Array
primary_table(String, 8 characters)wp_postsprimary_id_column(String, 2 characters)IDpublic __construct($tax_query)
/**
 * Constructor.
 *
 * @since 3.1.0
 * @since 4.1.0 Added support for `$operator` 'NOT EXISTS' and 'EXISTS' values.
 *
 * @param array $tax_query {
 *     Array of taxonomy query clauses.
 *
 *     @type string $relation Optional. The MySQL keyword used to join
 *                            the clauses of the query. Accepts 'AND', or 'OR'. Default 'AND'.
 *     @type array {
 *         Optional. An array of first-order clause parameters, or another fully-formed tax query.
 *
 *         @type string           $taxonomy         Taxonomy being queried. Optional when field=term_taxonomy_id.
 *         @type string|int|array $terms            Term or terms to filter by.
 *         @type string           $field            Field to match $terms against. Accepts 'term_id', 'slug',
 *                                                 'name', or 'term_taxonomy_id'. Default: 'term_id'.
 *         @type string           $operator         MySQL operator to be used with $terms in the WHERE clause.
 *                                                  Accepts 'AND', 'IN', 'NOT IN', 'EXISTS', 'NOT EXISTS'.
 *                                                  Default: 'IN'.
 *         @type bool             $include_children Optional. Whether to include child terms.
 *                                                  Requires a $taxonomy. Default: true.
 *     }
 * }
 */
public sanitize_query($queries)
/**
 * Ensure the 'tax_query' argument passed to the class constructor is well-formed.
 *
 * Ensures that each query-level clause has a 'relation' key, and that
 * each first-order clause contains all the necessary keys from `$defaults`.
 *
 * @since 4.1.0
 *
 * @param array $queries Array of queries clauses.
 * @return array Sanitized array of query clauses.
 */
public sanitize_relation($relation)
/**
 * Sanitize a 'relation' operator.
 *
 * @since 4.1.0
 *
 * @param string $relation Raw relation key from the query argument.
 * @return string Sanitized relation ('AND' or 'OR').
 */
public get_sql($primary_table, $primary_id_column)
/**
 * Generates SQL clauses to be appended to a main query.
 *
 * @since 3.1.0
 *
 * @param string $primary_table     Database table where the object being filtered is stored (eg wp_users).
 * @param string $primary_id_column ID column for the filtered object in $primary_table.
 * @return array {
 *     Array containing JOIN and WHERE SQL clauses to append to the main query.
 *
 *     @type string $join  SQL fragment to append to the main JOIN clause.
 *     @type string $where SQL fragment to append to the main WHERE clause.
 * }
 */
public get_sql_for_clause($clause, $parent_query)
/**
 * Generate SQL JOIN and WHERE clauses for a "first-order" query clause.
 *
 * @since 4.1.0
 *
 * @global wpdb $wpdb The WordPress database abstraction object.
 *
 * @param array $clause       Query clause (passed by reference).
 * @param array $parent_query Parent query array.
 * @return array {
 *     Array containing JOIN and WHERE SQL clauses to append to a first-order query.
 *
 *     @type string $join  SQL fragment to append to the main JOIN clause.
 *     @type string $where SQL fragment to append to the main WHERE clause.
 * }
 */
public transform_query($query, $resulting_field)
/**
 * Transforms a single query, from one field to another.
 *
 * Operates on the `$query` object by reference. In the case of error,
 * `$query` is converted to a WP_Error object.
 *
 * @since 3.2.0
 *
 * @global wpdb $wpdb The WordPress database abstraction object.
 *
 * @param array  $query           The single query. Passed by reference.
 * @param string $resulting_field The resulting field. Accepts 'slug', 'name', 'term_taxonomy_id',
 *                                or 'term_id'. Default 'term_id'.
 */
meta_query(Object, WP_Meta_Query, 6 properties)
queries(Array, 0 elements)
Empty Array
relation(NULL)meta_table(NULL)meta_id_column(NULL)primary_table(NULL)primary_id_column(NULL)*table_aliases(Array, 0 elements)
Empty Array
*clauses(Array, 0 elements)
Empty Array
*has_or_relation(Boolean)FALSEpublic __construct($meta_query = false)
/**
 * Constructor.
 *
 * @since 3.2.0
 * @since 4.2.0 Introduced support for naming query clauses by associative array keys.
 * @since 5.1.0 Introduced $compare_key clause parameter, which enables LIKE key matches.
 * @since 5.3.0 Increased the number of operators available to $compare_key. Introduced $type_key,
 *              which enables the $key to be cast to a new data type for comparisons.
 *
 * @param array $meta_query {
 *     Array of meta query clauses. When first-order clauses or sub-clauses use strings as
 *     their array keys, they may be referenced in the 'orderby' parameter of the parent query.
 *
 *     @type string $relation Optional. The MySQL keyword used to join
 *                            the clauses of the query. Accepts 'AND', or 'OR'. Default 'AND'.
 *     @type array {
 *         Optional. An array of first-order clause parameters, or another fully-formed meta query.
 *
 *         @type string $key         Meta key to filter by.
 *         @type string $compare_key MySQL operator used for comparing the $key. Accepts '=', '!='
 *                                   'LIKE', 'NOT LIKE', 'IN', 'NOT IN', 'REGEXP', 'NOT REGEXP', 'RLIKE',
 *                                   'EXISTS' (alias of '=') or 'NOT EXISTS' (alias of '!=').
 *                                   Default is 'IN' when `$key` is an array, '=' otherwise.
 *         @type string $type_key    MySQL data type that the meta_key column will be CAST to for
 *                                   comparisons. Accepts 'BINARY' for case-sensitive regular expression
 *                                   comparisons. Default is ''.
 *         @type string $value       Meta value to filter by.
 *         @type string $compare     MySQL operator used for comparing the $value. Accepts '=',
 *                                   '!=', '>', '>=', '<', '<=', 'LIKE', 'NOT LIKE',
 *                                   'IN', 'NOT IN', 'BETWEEN', 'NOT BETWEEN', 'REGEXP',
 *                                   'NOT REGEXP', 'RLIKE', 'EXISTS' or 'NOT EXISTS'.
 *                                   Default is 'IN' when `$value` is an array, '=' otherwise.
 *         @type string $type        MySQL data type that the meta_value column will be CAST to for
 *                                   comparisons. Accepts 'NUMERIC', 'BINARY', 'CHAR', 'DATE',
 *                                   'DATETIME', 'DECIMAL', 'SIGNED', 'TIME', or 'UNSIGNED'.
 *                                   Default is 'CHAR'.
 *     }
 * }
 */
public sanitize_query($queries)
/**
 * Ensure the 'meta_query' argument passed to the class constructor is well-formed.
 *
 * Eliminates empty items and ensures that a 'relation' is set.
 *
 * @since 4.1.0
 *
 * @param array $queries Array of query clauses.
 * @return array Sanitized array of query clauses.
 */
public parse_query_vars($qv)
/**
 * Constructs a meta query based on 'meta_*' query vars
 *
 * @since 3.2.0
 *
 * @param array $qv The query variables
 */
public get_cast_for_type($type = '')
/**
 * Return the appropriate alias for the given meta type if applicable.
 *
 * @since 3.7.0
 *
 * @param string $type MySQL type to cast meta_value.
 * @return string MySQL type.
 */
public get_sql($type, $primary_table, $primary_id_column, $context = NULL)
/**
 * Generates SQL clauses to be appended to a main query.
 *
 * @since 3.2.0
 *
 * @param string $type              Type of meta, eg 'user', 'post'.
 * @param string $primary_table     Database table where the object being filtered is stored (eg wp_users).
 * @param string $primary_id_column ID column for the filtered object in $primary_table.
 * @param object $context           Optional. The main query object.
 * @return false|array {
 *     Array containing JOIN and WHERE SQL clauses to append to the main query.
 *
 *     @type string $join  SQL fragment to append to the main JOIN clause.
 *     @type string $where SQL fragment to append to the main WHERE clause.
 * }
 */
public get_sql_for_clause($clause, $parent_query, $clause_key = '')
/**
 * Generate SQL JOIN and WHERE clauses for a first-order query clause.
 *
 * "First-order" means that it's an array with a 'key' or 'value'.
 *
 * @since 4.1.0
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *
 * @param array  $clause       Query clause (passed by reference).
 * @param array  $parent_query Parent query array.
 * @param string $clause_key   Optional. The array key used to name the clause in the original `$meta_query`
 *                             parameters. If not provided, a key will be generated automatically.
 * @return array {
 *     Array containing JOIN and WHERE SQL clauses to append to a first-order query.
 *
 *     @type string $join  SQL fragment to append to the main JOIN clause.
 *     @type string $where SQL fragment to append to the main WHERE clause.
 * }
 */
public get_clauses()
/**
 * Get a flattened list of sanitized meta clauses.
 *
 * This array should be used for clause lookup, as when the table alias and CAST type must be determined for
 * a value of 'orderby' corresponding to a meta clause.
 *
 * @since 4.2.0
 *
 * @return array Meta clauses.
 */
public has_or_relation()
/**
 * Checks whether the current query has any OR relations.
 *
 * In some cases, the presence of an OR relation somewhere in the query will require
 * the use of a `DISTINCT` or `GROUP BY` keyword in the `SELECT` clause. The current
 * method can be used in these cases to determine whether such a clause is necessary.
 *
 * @since 4.3.0
 *
 * @return bool True if the query contains any `OR` relations, otherwise false.
 */
date_query(Boolean)FALSEqueried_object(NULL)queried_object_id(NULL)request(String, 400 characters)SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts WHERE 1=1 AND wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'closed' OR wp_posts.post_status = 'paused' OR wp_posts.post_status = 'active' OR wp_posts.post_status = 'queued' OR wp_posts.post_status = 'finished' OR wp_posts.post_status = 'autoresponder') ORDER BY wp_posts.post_date DESC LIMIT 0, 5posts(Array, 5 elements)
0(Object, WP_Post, 24 properties)
ID(Integer)283post_author(String, 1 characters)1post_date(String, 19 characters)2019-03-08 10:40:05post_date_gmt(String, 19 characters)2019-03-08 09:40:05post_content(String, 5404 characters)To display the content for forums, bbPress relies on the theme templates. But, these are specialized template, and most themes don't have them. So, how the bbPress uses templates? In previous tutorial in the <a href="https://bbhelp.club/blog/tag/under-the-hood/">Under The Hood</a> series, we have discussed how the theme loads bbPress content, focusing mostly on the <a href="https://bbhelp.club/tutorials/bbpress-under-the-hood-theme-compatibility-system/">theme compatibility system</a> that bbPress uses for 99% of all WordPress themes. Now, we have to see how the request content (forum, topic or something else) ends up rendered by bbPress. <h3>Single request loading</h3> To load single forum request, this explanation will use single topic request. This has to display the content of the requested topic. If the theme has single topic template (single-topic.php), that template will have this main element related to bbPress: <pre class="EnlighterJSRAW" data-enlighter-language="php">&lt;?php if ( bbp_user_can_view_forum( array( 'forum_id' =&gt; bbp_get_topic_forum_id() ) ) ) : ?&gt; &lt;?php while ( have_posts() ) : the_post(); ?&gt; &lt;div id="bbp-topic-wrapper-&lt;?php bbp_topic_id(); ?&gt;" class="bbp-topic-wrapper"&gt; &lt;h1 class="entry-title"&gt;&lt;?php bbp_topic_title(); ?&gt;&lt;/h1&gt; &lt;div class="entry-content"&gt; &lt;?php bbp_get_template_part( 'content', 'single-topic' ); ?&gt; &lt;/div&gt; &lt;/div&gt;&lt;!-- #bbp-topic-wrapper-&lt;?php bbp_topic_id(); ?&gt; --&gt; &lt;?php endwhile; ?&gt; &lt;?php elseif ( bbp_is_forum_private( bbp_get_topic_forum_id(), false ) ) : ?&gt; &lt;?php bbp_get_template_part( 'feedback', 'no-access' ); ?&gt; &lt;?php endif; ?&gt;</pre> And, if the theme doesn't have the template, and if the bbPress uses theme compatibility code, it will use the shortcode to render. This shortcode will check for theme compatibility to setup some of the core query elements, and it will finally render the topic with this: <pre class="EnlighterJSRAW" data-enlighter-language="php">if ( bbp_user_can_view_forum( array( 'forum_id' =&gt; $forum_id ) ) ) { bbp_get_template_part( 'content', 'single-topic' ); } elseif ( bbp_is_forum_private( $forum_id, false ) ) { bbp_get_template_part( 'feedback', 'no-access' ); }</pre> So, you see that both versions are using <strong>bbp_get_template_part()</strong> function to load <strong>content/single-topic</strong> and <strong>feedback/no-access</strong> template parts. <h3>bbPress Template Parts</h3> Function <strong>bbp_get_template_part()</strong> is used to load template parts bbPress has for various elements: single forum row in the list of forums, list of forums, list of topics... There are currently more than 50 template parts included with bbPress. All these templates rely on the function to load the templates parts to do so. And, this function is very powerful, allowing you not only to hook in and modify the template part to load, but it uses something called <strong>templates storage</strong> to determine from where the templates should load. By default, bbPress registers several storages, including the theme. So, you can copy each template part from bbPress into your theme to modify them, and bbPress will load part from theme if exist. <h3>Theme Package</h3> All the template parts bbPress has are part of something called Theme Package. This package contains template parts, JavaScript and CSS needed, including main loader file that is used to setup the theme package. bbPress contains <strong>bbPress Default</strong> theme package. But, bbPress also allows you to register new theme packages. Theme Package must be contain all the template parts bbPress needs, it must load own CSS and JS files and it can't rely on the bbPress Default theme package. Theme Packages give bbPress great flexibility when it comes to the forums display and presentation and they manage to uncouple bbPress core from the rendering layer. But, the best thing about packages is that they can be part of other plugins, allowing the bbPress to still work with any other theme, because Theme Package works outside of the theme, and takes advantage of the bbPress Themes Compatibility System. Theme Package opens up the door for creating totally different forum layouts. <h4>Changing Theme Package</h4> If you don't have additional Theme Packages registered, bbPress will hide the option to change Theme Package in use. But, if additional packages are registered, new option will be available in bbPress Settings to switch to different Theme Package. [caption id="attachment_308" align="aligncenter" width="600"]<img class="wp-image-308 size-full" src="https://bbhelp.club/wp-content/uploads/2019/03/theme_packages.png" alt="" width="600" height="200" /> Theme package selection[/caption] <h3>Available Packages</h3> Right now, there is not much choice in theme packages for bbPress. Most websites are just using style customization with some minor templates changes to modify how the forums look like. But, there is one plugin that adds a new Theme Package: <a href="https://plugins.dev4press.com/gd-quantum-theme-for-bbpress/" target="_blank" rel="noopener noreferrer">GD Quantum Theme Pro for bbPress</a>. If you now about some other plugins that add new bbPress Theme Packages, please, let me know.post_title(String, 38 characters)bbPress Under the Hood: Theme Packagespost_excerpt(String, 179 characters)To display the content for forums, bbPress relies on the theme templates. But, these are specialized template, and most themes don't have them. So, how the bbPress uses templates?post_status(String, 7 characters)publishcomment_status(String, 4 characters)openping_status(String, 4 characters)openpost_password(String, 0 characters)post_name(String, 37 characters)bbpress-under-the-hood-theme-packagesto_ping(String, 0 characters)pinged(String, 0 characters)post_modified(String, 19 characters)2019-03-08 10:43:48post_modified_gmt(String, 19 characters)2019-03-08 09:43:48post_content_filtered(String, 0 characters)post_parent(Integer)0guid(String, 27 characters)https://bbhelp.club/?p=283/menu_order(Integer)0post_type(String, 4 characters)postpost_mime_type(String, 0 characters)comment_count(String, 1 characters)0filter(String, 3 characters)rawpublic static get_instance($post_id)
/**
 * Retrieve WP_Post instance.
 *
 * @since 3.5.0
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *
 * @param int $post_id Post ID.
 * @return WP_Post|false Post object, false otherwise.
 */
public __construct($post)
/**
 * Constructor.
 *
 * @since 3.5.0
 *
 * @param WP_Post|object $post Post object.
 */
public __isset($key)
/**
 * Isset-er.
 *
 * @since 3.5.0
 *
 * @param string $key Property to check if set.
 * @return bool
 */
public __get($key)
/**
 * Getter.
 *
 * @since 3.5.0
 *
 * @param string $key Key to get.
 * @return mixed
 */
public filter($filter)
/**
 * {@Missing Summary}
 *
 * @since 3.5.0
 *
 * @param string $filter Filter.
 * @return array|bool|object|WP_Post
 */
public to_array()
/**
 * Convert object to array.
 *
 * @since 3.5.0
 *
 * @return array Object as array.
 */
1(Object, WP_Post, 24 properties)
ID(Integer)299post_author(String, 1 characters)1post_date(String, 19 characters)2019-03-01 09:13:34post_date_gmt(String, 19 characters)2019-03-01 08:13:34post_content(String, 7201 characters)bbPress requires theme templates to display the forums content. Currently, bbPress needs total of 16 theme templates for all content types and taxonomies. bbPress has 3 content types: Forums, Topics and Replies and it has one taxonomy: Topic Tags. On top of that, there are additional elements like user profiles and topic views. For all of that, theme needs to have templates to load all that content. Forums need 3 templates, Topics need 6 templates, Replies need 3 templates, Topic Tags need 2 templates... And, these templates must be made to load the special bbPress related content. But, the problem is that most themes (99% of the themes) don't have these templates at all. So, how the bbPress works? <img class="aligncenter wp-image-302 size-large" src="https://bbhelp.club/wp-content/uploads/2019/03/theme_compatibility-720x469.png" alt="" width="720" height="469" /> There are two ways bbPress can load the content on the front end: theme has all the required templates (highly unlikely, but there are some themes that have these templates included), or the theme compatibility system (bbPress specialized loading system that works with any theme). <h3>Themes with own bbPress templates</h3> For themes to have the required templates, bbPress comes with the example templates that are located in bbPress plugin directory under <strong>templates/default/extras</strong>. These templates are not used directly, and it is not advised to use them directly. They have the basic structure of the theme templates with bbPress specific code in the middle. So, theme authors can use these example templates, copy them to the theme, and modify the layout to include bbPress specific code, but replace everything else to match the layout of the theme used by other theme templates. This is not very complicated to do, and some themes do have all these templates. They can style them differently, change layout if needed. These templates rarely change, so they will not require any significant maintenance time when future bbPress versions are released. But, it is hard to motivate a lot of WordPress themes creators to do so, especially when the bbPress already has a way to work without the explicit need for these templates. <h3>Theme Compatibility System</h3> And, now we come to the way that bbPress actually works: Theme Compatibility. This system was developed for both bbPress and BuddyPress. Both have a lot of theme templates they need, and since it is unrealistic that most themes will directly support any of these plugins, the system was created to load required content without the theme templates to match. Compatibility system uses standard theme page.php template as a wrapper for own content. <h4>Templates Loading</h4> bbPress hooks into the WordPress templates loading. There WordPress determines which templates to load based on the URL request. For each request WordPress generates list of potential templates, and it always includes fallback templates in case main templates are missing. For instance, for the post type archive main template is <strong>archive-{post-type}.php</strong>. But, if the theme is missing that template, loading would fail. So, the list will contain also: <strong>archive.php</strong> and <strong>index.php</strong>. So, templates loading attempts to load one of the listed templates that include main and fallback templates. So, that will always result in successful load, because all themes are required to have at least <strong>index.php</strong>. Problem is that end result doesn't look good, but, at least something is loaded. bbPress monitors the templates loading. If the theme has a main template for the bbPress related content, great, it will load that template. But, if that main template is missing (and it is missing for most themes), bbPress steps in and prevents WordPress to load fallback templates. <h4>Templates Fallbacks</h4> Now, bbPress knows what type of content is needed, and it knows that template for it is missing. bbPress then changes the fallback templates to following list: <strong>plugin-bbpress.php</strong>, <strong>bbpress.php</strong>, <strong>forums.php</strong>, <strong>forum.php</strong>, <strong>generic.php</strong>, <strong>page.php</strong>, <strong>single.php</strong>, <strong>singular.php</strong> and <strong>index.php</strong>. First four templates are usually (in themes that have them) copies of the page.php templates with few changes. But, most themes will not have them either. So, the loading fallbacks to <strong>page.php</strong>, <strong>single.php</strong> or <strong>index.php</strong>. These are basic templates that usually display the title and content for post or page, and nothing more. Yes, these templates might load comments and some other stuff, and bbPress will try to prevent that. <h4>Templates Rendering</h4> Now that the fallback templates list is changed, we still don't have our content rendered, because these fallback templates can't do that. Before bbPress gives control back to WordPress to load the template, bbPress creates a backup of the WordPress query object. This object contains the prepared content for the template to display. bbPress make a backup of that object and then it changes the main instance of that object. It switched the object to page, disables comments for that page and does few more things. But, the main thing is now to provide the title and content to match the forum related content that needs to be displayed. For that, bbPress uses a long switch statement that checks which forum content needs to be displayed (forum archive, single topic, user profile...), and generates the title and finally uses shortcodes to generate the content. Title and content are inserted into modified query object, and control is given back to WordPress. WordPress now using the modified query thinks that it has to display single page, loads the fallback template (<strong>page.php</strong> or <strong>index.php</strong> in most cases), and when it comes to the part to show title and content, it will use what bbPress inserted into query object. To see in detail how the bbPress theme compatibility works, you can check out the <strong>BBP_Theme_Compat</strong> class in <strong>bbpress/includes/core/theme-compat.php</strong> file. <h3>Hybrid Solution</h3> It is unrealistic to expect that each theme has bbPress templates. Some, specialized themes do have all the templates. But, more theme have special fallback templates we mentioned before: <strong>plugin-bbpress.php</strong>, <strong>bbpress.php</strong>, <strong>forums.php</strong>, <strong>forum.php</strong>. Only one of these is needed. So, theme has <strong>bbpress.php</strong> template, it is based on the page.php, but it is better solution because it gives theme author a chance to make changes to the forums layout compared to other pages. This way that single template can load different sidebar, or have layout without sidebars, it can have own CSS or something else. This is a hybrid solution: bbPress still uses theme compatibility to load all content, but theme has at least one template that is made specifically for bbPress and the forums. &nbsp;post_title(String, 50 characters)bbPress Under the Hood: Theme Compatibility Systempost_excerpt(String, 154 characters)bbPress requires theme templates to display the forums content. Currently, bbPress needs total of 16 theme templates for all content types and taxonomies.post_status(String, 7 characters)publishcomment_status(String, 4 characters)openping_status(String, 4 characters)openpost_password(String, 0 characters)post_name(String, 49 characters)bbpress-under-the-hood-theme-compatibility-systemto_ping(String, 0 characters)pinged(String, 0 characters)post_modified(String, 19 characters)2019-03-08 09:59:16post_modified_gmt(String, 19 characters)2019-03-08 08:59:16post_content_filtered(String, 0 characters)post_parent(Integer)0guid(String, 27 characters)https://bbhelp.club/?p=299/menu_order(Integer)0post_type(String, 4 characters)postpost_mime_type(String, 0 characters)comment_count(String, 1 characters)0filter(String, 3 characters)rawpublic static get_instance($post_id)
/**
 * Retrieve WP_Post instance.
 *
 * @since 3.5.0
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *
 * @param int $post_id Post ID.
 * @return WP_Post|false Post object, false otherwise.
 */
public __construct($post)
/**
 * Constructor.
 *
 * @since 3.5.0
 *
 * @param WP_Post|object $post Post object.
 */
public __isset($key)
/**
 * Isset-er.
 *
 * @since 3.5.0
 *
 * @param string $key Property to check if set.
 * @return bool
 */
public __get($key)
/**
 * Getter.
 *
 * @since 3.5.0
 *
 * @param string $key Key to get.
 * @return mixed
 */
public filter($filter)
/**
 * {@Missing Summary}
 *
 * @since 3.5.0
 *
 * @param string $filter Filter.
 * @return array|bool|object|WP_Post
 */
public to_array()
/**
 * Convert object to array.
 *
 * @since 3.5.0
 *
 * @return array Object as array.
 */
2(Object, WP_Post, 24 properties)
ID(Integer)261post_author(String, 1 characters)1post_date(String, 19 characters)2018-10-14 11:36:06post_date_gmt(String, 19 characters)2018-10-14 09:36:06post_content(String, 4851 characters)There are many ways to modify the way the bbPress forums look like, styling changes, filters and actions and overriding the templates bbPress uses to render all the forums elements. bbPress can work with any theme using something called 'theme compatibility' layer. It allows bbPress to use common 'page.php' template and embed inside the rendered content for forums. But, the default layout of the forum might not fit with every theme, and that is why bbPress can be completely changed by overriding and changing default templates that come with bbPress. And, that is something some theme use to modify the way bbPress looks and feels. Most theme don't change the templates, but only styling. Still, some things can't be changed without making modifications to templates. [caption id="attachment_265" align="aligncenter" width="720"]<a href="https://bbhelp.club/wp-content/uploads/2018/10/typical_template.png"><img class="size-large wp-image-265" src="https://bbhelp.club/wp-content/uploads/2018/10/typical_template-720x594.png" alt="Example of the bbPress Template content" width="720" height="594" /></a> Example of the bbPress Template content[/caption] <h3>Methods for the modifications</h3> There are 3 ways to modify the look and feel of the bbPress forums. <ol> <li><strong>CSS styling</strong>: this is most common method to customize bbPress forums. It doesn't affect the layout and the templates, only the styling is affected, allowing themes to adjust the forums to look more like the theme. Most themes with bbPress support are using this customization method.</li> <li><strong>Filters and Actions</strong>: third party plugin developers can use actions and filters present through out bbPress and bbPress templates to control various aspects of the forums, add extra elements into forums and more. All plugins made for bbPress are using this customization method.</li> <li><strong>Templates override</strong>: this method is used by some themes to change the layout of the forums by directly modifying the templates bbPress use to display forums, topics, replies and other elements. In theory, other plugins can do this, not just themes, because bbPress allows adding extra template storage locations (but, that is not in the scope of this tutorial).</li> </ol> <h3>bbPress Templates</h3> bbPress templates are similar to theme templates, they are used to display all forums elements. These templates are combination of HTML and PHP, and they include a lot of filters and actions that can help plugin developers hooking into different template parts. For a lot of changes, using filters and actions is quite enough to make complex changes, and the only method that can do everything, is the modification of templates. All default templates bbPress uses are located inside the bbPress plugin directory under 'templates/default/bbpress'. There are 50+ templates there, and they use easy to follow naming scheme to help you find the template you need. But, good practice is to follow each template and make note when the template uses '<strong>bbp_get_template_part</strong>' functions to load different template parts. <h3>Templates Override</h3> To override the template in your theme, you should follow these simple rules: <ol> <li>Make sure that your theme has a '<strong>bbpress</strong>' directory. All templates you override should go into this directory.</li> <li>Find the bbPress template you want to change in the bbPress plugin directory '<strong>templates/default/bbpress</strong>'.</li> <li>Copy the template from bbPress directory into your theme '<strong>bbpress</strong>' directory.</li> </ol> Repeat steps 2 and 3 for all templates you need to change. For instance, you want to make changes to the '<strong>form-topic.php</strong>' file. Default file is located in this directory: <strong>wp-content/plugins/bbpress/templates/default/bbpress/</strong> and you need to copy it into your theme bbPress directory: <strong>wp-content/themes/theme-name/bbpress/</strong>. <h3>Important Notices</h3> When you make changes to bbPress templates, you should note the following: <ol> <li>New bbPress versions often make changes to default templates. So, if your theme overrides a template from older version of the bbPress, when new bbPress is released, your override template might be lacking some new features added in latest version. When new bbPress is released, make sure you check the templates you override in your theme and adjust them for the new templates in bbPress.</li> <li>Do not remove any actions and filters from the templates you are changing (<strong>do_action</strong> and <strong>apply_filters</strong> function calls)! If you remove any of them, you are risking breaking some of the features in bbPress or features added by the third party plugins.</li> </ol>post_title(String, 60 characters)How to safely override and modify default bbPress templates?post_excerpt(String, 181 characters)There are many ways to modify the way the bbPress forums look like, styling changes, filters and actions and overriding the templates bbPress uses to render all the forums elements.post_status(String, 7 characters)publishcomment_status(String, 4 characters)openping_status(String, 4 characters)openpost_password(String, 0 characters)post_name(String, 59 characters)how-to-safely-override-and-modify-default-bbpress-templatesto_ping(String, 0 characters)pinged(String, 0 characters)post_modified(String, 19 characters)2018-10-14 11:36:06post_modified_gmt(String, 19 characters)2018-10-14 09:36:06post_content_filtered(String, 0 characters)post_parent(Integer)0guid(String, 27 characters)https://bbhelp.club/?p=261/menu_order(Integer)0post_type(String, 4 characters)postpost_mime_type(String, 0 characters)comment_count(String, 1 characters)0filter(String, 3 characters)rawpublic static get_instance($post_id)
/**
 * Retrieve WP_Post instance.
 *
 * @since 3.5.0
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *
 * @param int $post_id Post ID.
 * @return WP_Post|false Post object, false otherwise.
 */
public __construct($post)
/**
 * Constructor.
 *
 * @since 3.5.0
 *
 * @param WP_Post|object $post Post object.
 */
public __isset($key)
/**
 * Isset-er.
 *
 * @since 3.5.0
 *
 * @param string $key Property to check if set.
 * @return bool
 */
public __get($key)
/**
 * Getter.
 *
 * @since 3.5.0
 *
 * @param string $key Key to get.
 * @return mixed
 */
public filter($filter)
/**
 * {@Missing Summary}
 *
 * @since 3.5.0
 *
 * @param string $filter Filter.
 * @return array|bool|object|WP_Post
 */
public to_array()
/**
 * Convert object to array.
 *
 * @since 3.5.0
 *
 * @return array Object as array.
 */
3(Object, WP_Post, 24 properties)
ID(Integer)253post_author(String, 1 characters)1post_date(String, 19 characters)2018-09-12 12:45:59post_date_gmt(String, 19 characters)2018-09-12 10:45:59post_content(String, 2005 characters)With the <a href="https://plugins.dev4press.com/gd-power-search-for-bbpress/" target="_blank" rel="noopener">GD Power Search Pro for bbPress</a> plugin, bbPress Help Club now has advanced search for the community forums that will be significant help in the when it comes to searching the forums. bbPress is a lightweight plugin that integrates into WordPress, and it was never intended to have all the features standalone forum software has, and it has very basic keyword search that depends completely on the WordPress own WP_Query search. And, now all that changes with the use of GD Power Search Pro plugin. This plugin replaces default bbPress search form on the bbPress Search page with the advanced, filters powered search form. [caption id="attachment_254" align="aligncenter" width="720"]<a href="https://bbhelp.club/wp-content/uploads/2018/09/bbhelp-forum-search.png"><img class="size-large wp-image-254" src="https://bbhelp.club/wp-content/uploads/2018/09/bbhelp-forum-search-720x648.png" alt="bbHelp Club Forums Search page" width="720" height="648" /></a> bbHelp Club Forums Search page[/caption] With the new search, you can select forums to search, date period, author, topic tag and content type. And, keywords search can be limited to title or content. Search results sorting can be also modified. Installation of GD Power Search Pro for bbPress required no changes to the website templates, and the only changes are related to some minor styling tweaks. Even without styling changes, form looks good and fits well into any theme. [xss_panel color="secondary"]If you run your own bbPress powered forum, you can get the GD Power Search Pro for bbPress, and for a a limited time, with the exclusive 10% discount using this coupon: <strong>BBHELPSEARCH</strong>. This coupon is valid until the <strong>October 31st, 2018</strong>. Go to the <a href="https://plugins.dev4press.com/gd-power-search-for-bbpress/buy/">Buy Now</a> page, and use the coupon on the checkout.[/xss_panel]post_title(String, 35 characters)Advanced search in community forumspost_excerpt(String, 191 characters)With the GD Power Search Pro for bbPress plugin, bbPress Help Club now has advanced search for the community forums that will be significant help in the when it comes to searching the forums.post_status(String, 7 characters)publishcomment_status(String, 4 characters)openping_status(String, 4 characters)openpost_password(String, 0 characters)post_name(String, 35 characters)advanced-search-in-community-forumsto_ping(String, 0 characters)pinged(String, 0 characters)post_modified(String, 19 characters)2018-09-12 12:45:59post_modified_gmt(String, 19 characters)2018-09-12 10:45:59post_content_filtered(String, 0 characters)post_parent(Integer)0guid(String, 27 characters)https://bbhelp.club/?p=253/menu_order(Integer)0post_type(String, 4 characters)postpost_mime_type(String, 0 characters)comment_count(String, 1 characters)0filter(String, 3 characters)rawpublic static get_instance($post_id)
/**
 * Retrieve WP_Post instance.
 *
 * @since 3.5.0
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *
 * @param int $post_id Post ID.
 * @return WP_Post|false Post object, false otherwise.
 */
public __construct($post)
/**
 * Constructor.
 *
 * @since 3.5.0
 *
 * @param WP_Post|object $post Post object.
 */
public __isset($key)
/**
 * Isset-er.
 *
 * @since 3.5.0
 *
 * @param string $key Property to check if set.
 * @return bool
 */
public __get($key)
/**
 * Getter.
 *
 * @since 3.5.0
 *
 * @param string $key Key to get.
 * @return mixed
 */
public filter($filter)
/**
 * {@Missing Summary}
 *
 * @since 3.5.0
 *
 * @param string $filter Filter.
 * @return array|bool|object|WP_Post
 */
public to_array()
/**
 * Convert object to array.
 *
 * @since 3.5.0
 *
 * @return array Object as array.
 */
4(Object, WP_Post, 24 properties)
ID(Integer)224post_author(String, 1 characters)1post_date(String, 19 characters)2018-08-23 12:20:40post_date_gmt(String, 19 characters)2018-08-23 10:20:40post_content(String, 4014 characters)Many of the answers on this website include the custom code you need to use (and maybe modify) to achieve something related to bbPress. What is the best way to add this code? Most of the time, when there is a custom code involved with WordPress, recommendation is to add it to the active theme functions.php. I think that is a very bad idea. What if you change the theme? You need to hunt all the custom code from previous theme and copy it into new theme. Maybe you copy something specific to the old theme, and you break your website. The best way to add the custom code is via the plugin. But, if you don't want to create the plugin for few lines of code, the best solution is to use <a href="https://codex.wordpress.org/Must_Use_Plugins" target="_blank" rel="noopener"><strong>Must Use Plugins</strong></a>, or 'mu-plugins'. These plugins are always loaded, they are usually a single file, and they don't support many advanced features normal plugins have. But, for our purpose, they are perfect. <h3>Create mu-plugins directory</h3> [caption id="attachment_225" align="alignright" width="225"]<img class="wp-image-225 size-full" src="https://bbhelp.club/wp-content/uploads/2018/08/muplugins.png" alt="WordPress Structure" width="225" height="287" /> WordPress Structure[/caption] Before you create a mu-plugin, make sure that you have <strong>mu-plugins</strong> directory under <strong>wp-content</strong>. If you don't have this directory, create it (using FTP or the file manage from your hosting control panel). Image on the right shows how the wp-content directory looks like when the mu-plugins is present. On your website, you might have some more directories. But, it is important to have mu-plugins. <h3>Create new mu-plugin</h3> Now, in the mu-plugins folder, create a new plugin. Let's call it <strong>bbhelp.php</strong>. This will clearly state that plugin will hold the code from bbHelp Club website, and you will be able to find it and modify any time you need. Once you create the file, open it for editing, and insert the following few lines to get started: <pre class="EnlighterJSRAW" data-enlighter-language="php">&lt;?php /** * Custom Code for bbPress from bbHelp Club website * https://bbhelp.club/ */ </pre> Now, at the end of this file, add empty line, and paste the custom code from bbHelp answers you want to use. Save the file, and you are done. WordPress will load this file anytime it loads, and will run the custom code inside. Here is the file with some custom code added from the <a href="https://bbhelp.club/answer/frontend/how-can-i-disable-adding-of-nofollow-to-content-links/187/">How can I disable adding of ‘nofollow’ to content links?</a> answer: <pre class="EnlighterJSRAW" data-enlighter-language="php">&lt;?php /** * Custom Code for bbPress from bbHelp Club website * https://bbhelp.club/ */ // disable adding 'nofollow' for topics remove_filter('bbp_get_topic_content', 'bbp_rel_nofollow', 50); // disable adding 'nofollow' for replies remove_filter('bbp_get_reply_content', 'bbp_rel_nofollow', 50);</pre> If you find another answer with custom code you want to use, add empty line at the end of <strong>bbhelp.php</strong> file in the mu-plugins directory, paste the custom code from the answer, and save. That's it. [caption id="attachment_228" align="aligncenter" width="720"]<a href="https://bbhelp.club/wp-content/uploads/2018/08/bbhelpmu.png"><img class="size-large wp-image-228" src="https://bbhelp.club/wp-content/uploads/2018/08/bbhelpmu-720x454.png" alt="Example mu-plugin" width="720" height="454" /></a> Example mu-plugin[/caption] As you can see, mu-plugin is very easy to use, and very convenient method for adding bits and pieces of the custom code, without messing with the theme or other plugins. And, you can use it for other things, and you can add more mu-plugins, just make each plugin a new PHP file. Let me know if you have you used mu-plugins before, and what do you think about them?post_title(String, 51 characters)How to add custom code from the bbHelp Club Answerspost_excerpt(String, 174 characters)Many of the answers on this website include the custom code you need to use (and maybe modify) to achieve something related to bbPress. What is the best way to add this code?post_status(String, 7 characters)publishcomment_status(String, 4 characters)openping_status(String, 4 characters)openpost_password(String, 0 characters)post_name(String, 51 characters)how-to-add-custom-code-from-the-bbhelp-club-answersto_ping(String, 0 characters)pinged(String, 0 characters)post_modified(String, 19 characters)2018-09-05 15:15:41post_modified_gmt(String, 19 characters)2018-09-05 13:15:41post_content_filtered(String, 0 characters)post_parent(Integer)0guid(String, 27 characters)https://bbhelp.club/?p=224/menu_order(Integer)0post_type(String, 4 characters)postpost_mime_type(String, 0 characters)comment_count(String, 1 characters)0filter(String, 3 characters)rawpublic static get_instance($post_id)
/**
 * Retrieve WP_Post instance.
 *
 * @since 3.5.0
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *
 * @param int $post_id Post ID.
 * @return WP_Post|false Post object, false otherwise.
 */
public __construct($post)
/**
 * Constructor.
 *
 * @since 3.5.0
 *
 * @param WP_Post|object $post Post object.
 */
public __isset($key)
/**
 * Isset-er.
 *
 * @since 3.5.0
 *
 * @param string $key Property to check if set.
 * @return bool
 */
public __get($key)
/**
 * Getter.
 *
 * @since 3.5.0
 *
 * @param string $key Key to get.
 * @return mixed
 */
public filter($filter)
/**
 * {@Missing Summary}
 *
 * @since 3.5.0
 *
 * @param string $filter Filter.
 * @return array|bool|object|WP_Post
 */
public to_array()
/**
 * Convert object to array.
 *
 * @since 3.5.0
 *
 * @return array Object as array.
 */
post_count(Integer)5current_post(Integer)-1in_the_loop(Boolean)FALSEpost(Object, WP_Post, 24 properties)
ID(Integer)283post_author(String, 1 characters)1post_date(String, 19 characters)2019-03-08 10:40:05post_date_gmt(String, 19 characters)2019-03-08 09:40:05post_content(String, 5404 characters)To display the content for forums, bbPress relies on the theme templates. But, these are specialized template, and most themes don't have them. So, how the bbPress uses templates? In previous tutorial in the <a href="https://bbhelp.club/blog/tag/under-the-hood/">Under The Hood</a> series, we have discussed how the theme loads bbPress content, focusing mostly on the <a href="https://bbhelp.club/tutorials/bbpress-under-the-hood-theme-compatibility-system/">theme compatibility system</a> that bbPress uses for 99% of all WordPress themes. Now, we have to see how the request content (forum, topic or something else) ends up rendered by bbPress. <h3>Single request loading</h3> To load single forum request, this explanation will use single topic request. This has to display the content of the requested topic. If the theme has single topic template (single-topic.php), that template will have this main element related to bbPress: <pre class="EnlighterJSRAW" data-enlighter-language="php">&lt;?php if ( bbp_user_can_view_forum( array( 'forum_id' =&gt; bbp_get_topic_forum_id() ) ) ) : ?&gt; &lt;?php while ( have_posts() ) : the_post(); ?&gt; &lt;div id="bbp-topic-wrapper-&lt;?php bbp_topic_id(); ?&gt;" class="bbp-topic-wrapper"&gt; &lt;h1 class="entry-title"&gt;&lt;?php bbp_topic_title(); ?&gt;&lt;/h1&gt; &lt;div class="entry-content"&gt; &lt;?php bbp_get_template_part( 'content', 'single-topic' ); ?&gt; &lt;/div&gt; &lt;/div&gt;&lt;!-- #bbp-topic-wrapper-&lt;?php bbp_topic_id(); ?&gt; --&gt; &lt;?php endwhile; ?&gt; &lt;?php elseif ( bbp_is_forum_private( bbp_get_topic_forum_id(), false ) ) : ?&gt; &lt;?php bbp_get_template_part( 'feedback', 'no-access' ); ?&gt; &lt;?php endif; ?&gt;</pre> And, if the theme doesn't have the template, and if the bbPress uses theme compatibility code, it will use the shortcode to render. This shortcode will check for theme compatibility to setup some of the core query elements, and it will finally render the topic with this: <pre class="EnlighterJSRAW" data-enlighter-language="php">if ( bbp_user_can_view_forum( array( 'forum_id' =&gt; $forum_id ) ) ) { bbp_get_template_part( 'content', 'single-topic' ); } elseif ( bbp_is_forum_private( $forum_id, false ) ) { bbp_get_template_part( 'feedback', 'no-access' ); }</pre> So, you see that both versions are using <strong>bbp_get_template_part()</strong> function to load <strong>content/single-topic</strong> and <strong>feedback/no-access</strong> template parts. <h3>bbPress Template Parts</h3> Function <strong>bbp_get_template_part()</strong> is used to load template parts bbPress has for various elements: single forum row in the list of forums, list of forums, list of topics... There are currently more than 50 template parts included with bbPress. All these templates rely on the function to load the templates parts to do so. And, this function is very powerful, allowing you not only to hook in and modify the template part to load, but it uses something called <strong>templates storage</strong> to determine from where the templates should load. By default, bbPress registers several storages, including the theme. So, you can copy each template part from bbPress into your theme to modify them, and bbPress will load part from theme if exist. <h3>Theme Package</h3> All the template parts bbPress has are part of something called Theme Package. This package contains template parts, JavaScript and CSS needed, including main loader file that is used to setup the theme package. bbPress contains <strong>bbPress Default</strong> theme package. But, bbPress also allows you to register new theme packages. Theme Package must be contain all the template parts bbPress needs, it must load own CSS and JS files and it can't rely on the bbPress Default theme package. Theme Packages give bbPress great flexibility when it comes to the forums display and presentation and they manage to uncouple bbPress core from the rendering layer. But, the best thing about packages is that they can be part of other plugins, allowing the bbPress to still work with any other theme, because Theme Package works outside of the theme, and takes advantage of the bbPress Themes Compatibility System. Theme Package opens up the door for creating totally different forum layouts. <h4>Changing Theme Package</h4> If you don't have additional Theme Packages registered, bbPress will hide the option to change Theme Package in use. But, if additional packages are registered, new option will be available in bbPress Settings to switch to different Theme Package. [caption id="attachment_308" align="aligncenter" width="600"]<img class="wp-image-308 size-full" src="https://bbhelp.club/wp-content/uploads/2019/03/theme_packages.png" alt="" width="600" height="200" /> Theme package selection[/caption] <h3>Available Packages</h3> Right now, there is not much choice in theme packages for bbPress. Most websites are just using style customization with some minor templates changes to modify how the forums look like. But, there is one plugin that adds a new Theme Package: <a href="https://plugins.dev4press.com/gd-quantum-theme-for-bbpress/" target="_blank" rel="noopener noreferrer">GD Quantum Theme Pro for bbPress</a>. If you now about some other plugins that add new bbPress Theme Packages, please, let me know.post_title(String, 38 characters)bbPress Under the Hood: Theme Packagespost_excerpt(String, 179 characters)To display the content for forums, bbPress relies on the theme templates. But, these are specialized template, and most themes don't have them. So, how the bbPress uses templates?post_status(String, 7 characters)publishcomment_status(String, 4 characters)openping_status(String, 4 characters)openpost_password(String, 0 characters)post_name(String, 37 characters)bbpress-under-the-hood-theme-packagesto_ping(String, 0 characters)pinged(String, 0 characters)post_modified(String, 19 characters)2019-03-08 10:43:48post_modified_gmt(String, 19 characters)2019-03-08 09:43:48post_content_filtered(String, 0 characters)post_parent(Integer)0guid(String, 27 characters)https://bbhelp.club/?p=283/menu_order(Integer)0post_type(String, 4 characters)postpost_mime_type(String, 0 characters)comment_count(String, 1 characters)0filter(String, 3 characters)rawpublic static get_instance($post_id)
/**
 * Retrieve WP_Post instance.
 *
 * @since 3.5.0
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *
 * @param int $post_id Post ID.
 * @return WP_Post|false Post object, false otherwise.
 */
public __construct($post)
/**
 * Constructor.
 *
 * @since 3.5.0
 *
 * @param WP_Post|object $post Post object.
 */
public __isset($key)
/**
 * Isset-er.
 *
 * @since 3.5.0
 *
 * @param string $key Property to check if set.
 * @return bool
 */
public __get($key)
/**
 * Getter.
 *
 * @since 3.5.0
 *
 * @param string $key Key to get.
 * @return mixed
 */
public filter($filter)
/**
 * {@Missing Summary}
 *
 * @since 3.5.0
 *
 * @param string $filter Filter.
 * @return array|bool|object|WP_Post
 */
public to_array()
/**
 * Convert object to array.
 *
 * @since 3.5.0
 *
 * @return array Object as array.
 */
comment_count(Integer)0current_comment(Integer)-1found_posts(String, 1 characters)7max_num_pages(Double)2max_num_comment_pages(Integer)0is_single(Boolean)FALSEis_preview(Boolean)FALSEis_page(Boolean)FALSEis_archive(Boolean)FALSEis_date(Boolean)FALSEis_year(Boolean)FALSEis_month(Boolean)FALSEis_day(Boolean)FALSEis_time(Boolean)FALSEis_author(Boolean)FALSEis_category(Boolean)FALSEis_tag(Boolean)FALSEis_tax(Boolean)FALSEis_search(Boolean)FALSEis_feed(Boolean)FALSEis_comment_feed(Boolean)FALSEis_trackback(Boolean)FALSEis_home(Boolean)FALSEis_privacy_policy(Boolean)FALSEis_404(Boolean)FALSEis_embed(Boolean)FALSEis_paged(Boolean)FALSEis_admin(Boolean)FALSEis_attachment(Boolean)FALSEis_singular(Boolean)FALSEis_robots(Boolean)FALSEis_posts_page(Boolean)FALSEis_post_type_archive(Boolean)FALSEWP_Queryquery_vars_hash(String, 32 characters)650feb1a1277dce33d5b3de63a807e11WP_Queryquery_vars_changed(Boolean)FALSEthumbnails_cached(Boolean)FALSEWP_Querystopwords(NULL)WP_Querycompat_fields(Array, 2 elements)
0(String, 15 characters)query_vars_hash1(String, 18 characters)query_vars_changed
WP_Querycompat_methods(Array, 2 elements)
0(String, 16 characters)init_query_flags1(String, 15 characters)parse_tax_query
bbp_is_view(Boolean)TRUEbbp_is_404(Boolean)FALSEis_cpt_taxonomy_index(Boolean)FALSEis_cpt_archive_intersection(Boolean)FALSEis_cpt_date_intersection(Boolean)FALSEis_cpt_author_intersection(Boolean)FALSEis_sitemap_xml(Boolean)FALSEgdseo(Object, stdClass, 7 properties)
int_term_post(Boolean)FALSEint_date_post(Boolean)FALSEint_author_post(Boolean)FALSEpost_type(String, 0 characters)taxonomies(Array, 0 elements)
Empty Array
terms(Array, 0 elements)
Empty Array
author(String, 0 characters)No Methods
public init()
/**
 * Initiates object properties and sets default values.
 *
 * @since 1.5.0
 */
public parse_query_vars()
/**
 * Reparse the query vars.
 *
 * @since 1.5.0
 */
public fill_query_vars($array)
/**
 * Fills in the query variables, which do not exist within the parameter.
 *
 * @since 2.1.0
 * @since 4.5.0 Removed the `comments_popup` public query variable.
 *
 * @param array $array Defined query variables.
 * @return array Complete query variables with undefined ones filled in empty.
 */
public parse_query($query = '')
/**
 * Parse a query string and set query type booleans.
 *
 * @since 1.5.0
 * @since 4.2.0 Introduced the ability to order by specific clauses of a `$meta_query`, by passing the clause's
 *              array key to `$orderby`.
 * @since 4.4.0 Introduced `$post_name__in` and `$title` parameters. `$s` was updated to support excluded
 *              search terms, by prepending a hyphen.
 * @since 4.5.0 Removed the `$comments_popup` parameter.
 *              Introduced the `$comment_status` and `$ping_status` parameters.
 *              Introduced `RAND(x)` syntax for `$orderby`, which allows an integer seed value to random sorts.
 * @since 4.6.0 Added 'post_name__in' support for `$orderby`. Introduced the `$lazy_load_term_meta` argument.
 * @since 4.9.0 Introduced the `$comment_count` parameter.
 * @since 5.1.0 Introduced the `$meta_compare_key` parameter.
 * @since 5.3.0 Introduced the `$meta_type_key` parameter.
 *
 * @param string|array $query {
 *     Optional. Array or string of Query parameters.
 *
 *     @type int          $attachment_id           Attachment post ID. Used for 'attachment' post_type.
 *     @type int|string   $author                  Author ID, or comma-separated list of IDs.
 *     @type string       $author_name             User 'user_nicename'.
 *     @type array        $author__in              An array of author IDs to query from.
 *     @type array        $author__not_in          An array of author IDs not to query from.
 *     @type bool         $cache_results           Whether to cache post information. Default true.
 *     @type int|string   $cat                     Category ID or comma-separated list of IDs (this or any children).
 *     @type array        $category__and           An array of category IDs (AND in).
 *     @type array        $category__in            An array of category IDs (OR in, no children).
 *     @type array        $category__not_in        An array of category IDs (NOT in).
 *     @type string       $category_name           Use category slug (not name, this or any children).
 *     @type array|int    $comment_count           Filter results by comment count. Provide an integer to match
 *                                                 comment count exactly. Provide an array with integer 'value'
 *                                                 and 'compare' operator ('=', '!=', '>', '>=', '<', '<=' ) to
 *                                                 compare against comment_count in a specific way.
 *     @type string       $comment_status          Comment status.
 *     @type int          $comments_per_page       The number of comments to return per page.
 *                                                 Default 'comments_per_page' option.
 *     @type array        $date_query              An associative array of WP_Date_Query arguments.
 *                                                 See WP_Date_Query::__construct().
 *     @type int          $day                     Day of the month. Default empty. Accepts numbers 1-31.
 *     @type bool         $exact                   Whether to search by exact keyword. Default false.
 *     @type string|array $fields                  Which fields to return. Single field or all fields (string),
 *                                                 or array of fields. 'id=>parent' uses 'id' and 'post_parent'.
 *                                                 Default all fields. Accepts 'ids', 'id=>parent'.
 *     @type int          $hour                    Hour of the day. Default empty. Accepts numbers 0-23.
 *     @type int|bool     $ignore_sticky_posts     Whether to ignore sticky posts or not. Setting this to false
 *                                                 excludes stickies from 'post__in'. Accepts 1|true, 0|false.
 *                                                 Default 0|false.
 *     @type int          $m                       Combination YearMonth. Accepts any four-digit year and month
 *                                                 numbers 1-12. Default empty.
 *     @type string       $meta_compare            Comparison operator to test the 'meta_value'.
 *     @type string       $meta_compare_key        Comparison operator to test the 'meta_key'.
 *     @type string       $meta_key                Custom field key.
 *     @type array        $meta_query              An associative array of WP_Meta_Query arguments. See WP_Meta_Query.
 *     @type string       $meta_value              Custom field value.
 *     @type int          $meta_value_num          Custom field value number.
 *     @type string       $meta_type_key           Cast for 'meta_key'. See WP_Meta_Query::construct().
 *     @type int          $menu_order              The menu order of the posts.
 *     @type int          $monthnum                The two-digit month. Default empty. Accepts numbers 1-12.
 *     @type string       $name                    Post slug.
 *     @type bool         $nopaging                Show all posts (true) or paginate (false). Default false.
 *     @type bool         $no_found_rows           Whether to skip counting the total rows found. Enabling can improve
 *                                                 performance. Default false.
 *     @type int          $offset                  The number of posts to offset before retrieval.
 *     @type string       $order                   Designates ascending or descending order of posts. Default 'DESC'.
 *                                                 Accepts 'ASC', 'DESC'.
 *     @type string|array $orderby                 Sort retrieved posts by parameter. One or more options may be
 *                                                 passed. To use 'meta_value', or 'meta_value_num',
 *                                                 'meta_key=keyname' must be also be defined. To sort by a
 *                                                 specific `$meta_query` clause, use that clause's array key.
 *                                                 Accepts 'none', 'name', 'author', 'date', 'title',
 *                                                 'modified', 'menu_order', 'parent', 'ID', 'rand',
 *                                                 'relevance', 'RAND(x)' (where 'x' is an integer seed value),
 *                                                 'comment_count', 'meta_value', 'meta_value_num', 'post__in',
 *                                                 'post_name__in', 'post_parent__in', and the array keys
 *                                                 of `$meta_query`. Default is 'date', except when a search
 *                                                 is being performed, when the default is 'relevance'.
 *
 *     @type int          $p                       Post ID.
 *     @type int          $page                    Show the number of posts that would show up on page X of a
 *                                                 static front page.
 *     @type int          $paged                   The number of the current page.
 *     @type int          $page_id                 Page ID.
 *     @type string       $pagename                Page slug.
 *     @type string       $perm                    Show posts if user has the appropriate capability.
 *     @type string       $ping_status             Ping status.
 *     @type array        $post__in                An array of post IDs to retrieve, sticky posts will be included
 *     @type string       $post_mime_type          The mime type of the post. Used for 'attachment' post_type.
 *     @type array        $post__not_in            An array of post IDs not to retrieve. Note: a string of comma-
 *                                                 separated IDs will NOT work.
 *     @type int          $post_parent             Page ID to retrieve child pages for. Use 0 to only retrieve
 *                                                 top-level pages.
 *     @type array        $post_parent__in         An array containing parent page IDs to query child pages from.
 *     @type array        $post_parent__not_in     An array containing parent page IDs not to query child pages from.
 *     @type string|array $post_type               A post type slug (string) or array of post type slugs.
 *                                                 Default 'any' if using 'tax_query'.
 *     @type string|array $post_status             A post status (string) or array of post statuses.
 *     @type int          $posts_per_page          The number of posts to query for. Use -1 to request all posts.
 *     @type int          $posts_per_archive_page  The number of posts to query for by archive page. Overrides
 *                                                 'posts_per_page' when is_archive(), or is_search() are true.
 *     @type array        $post_name__in           An array of post slugs that results must match.
 *     @type string       $s                       Search keyword(s). Prepending a term with a hyphen will
 *                                                 exclude posts matching that term. Eg, 'pillow -sofa' will
 *                                                 return posts containing 'pillow' but not 'sofa'. The
 *                                                 character used for exclusion can be modified using the
 *                                                 the 'wp_query_search_exclusion_prefix' filter.
 *     @type int          $second                  Second of the minute. Default empty. Accepts numbers 0-60.
 *     @type bool         $sentence                Whether to search by phrase. Default false.
 *     @type bool         $suppress_filters        Whether to suppress filters. Default false.
 *     @type string       $tag                     Tag slug. Comma-separated (either), Plus-separated (all).
 *     @type array        $tag__and                An array of tag ids (AND in).
 *     @type array        $tag__in                 An array of tag ids (OR in).
 *     @type array        $tag__not_in             An array of tag ids (NOT in).
 *     @type int          $tag_id                  Tag id or comma-separated list of IDs.
 *     @type array        $tag_slug__and           An array of tag slugs (AND in).
 *     @type array        $tag_slug__in            An array of tag slugs (OR in). unless 'ignore_sticky_posts' is
 *                                                 true. Note: a string of comma-separated IDs will NOT work.
 *     @type array        $tax_query               An associative array of WP_Tax_Query arguments.
 *                                                 See WP_Tax_Query->queries.
 *     @type string       $title                   Post title.
 *     @type bool         $update_post_meta_cache  Whether to update the post meta cache. Default true.
 *     @type bool         $update_post_term_cache  Whether to update the post term cache. Default true.
 *     @type bool         $lazy_load_term_meta     Whether to lazy-load term meta. Setting to false will
 *                                                 disable cache priming for term meta, so that each
 *                                                 get_term_meta() call will hit the database.
 *                                                 Defaults to the value of `$update_post_term_cache`.
 *     @type int          $w                       The week number of the year. Default empty. Accepts numbers 0-53.
 *     @type int          $year                    The four-digit year. Default empty. Accepts any four-digit year.
 * }
 */
public parse_tax_query($q)
/**
 * Parses various taxonomy related query vars.
 *
 * For BC, this method is not marked as protected. See [28987].
 *
 * @since 3.1.0
 *
 * @param array $q The query variables. Passed by reference.
 */
public set_404()
/**
 * Sets the 404 property and saves whether query is feed.
 *
 * @since 2.0.0
 */
public get($query_var, $default = '')
/**
 * Retrieve query variable.
 *
 * @since 1.5.0
 * @since 3.9.0 The `$default` argument was introduced.
 *
 * @param string $query_var Query variable key.
 * @param mixed  $default   Optional. Value to return if the query variable is not set. Default empty.
 * @return mixed Contents of the query variable.
 */
public set($query_var, $value)
/**
 * Set query variable.
 *
 * @since 1.5.0
 *
 * @param string $query_var Query variable key.
 * @param mixed  $value     Query variable value.
 */
public get_posts()
/**
 * Retrieves an array of posts based on query variables.
 *
 * There are a few filters and actions that can be used to modify the post
 * database query.
 *
 * @since 1.5.0
 *
 * @return WP_Post[]|int[] Array of post objects or post IDs.
 */
public next_post()
/**
 * Set up the next post and iterate current post index.
 *
 * @since 1.5.0
 *
 * @return WP_Post Next post.
 */
public the_post()
/**
 * Sets up the current post.
 *
 * Retrieves the next post, sets up the post, sets the 'in the loop'
 * property to true.
 *
 * @since 1.5.0
 *
 * @global WP_Post $post Global post object.
 */
public have_posts()
/**
 * Determines whether there are more posts available in the loop.
 *
 * Calls the {@see 'loop_end'} action when the loop is complete.
 *
 * @since 1.5.0
 *
 * @return bool True if posts are available, false if end of loop.
 */
public rewind_posts()
/**
 * Rewind the posts and reset post index.
 *
 * @since 1.5.0
 */
public next_comment()
/**
 * Iterate current comment index and return WP_Comment object.
 *
 * @since 2.2.0
 *
 * @return WP_Comment Comment object.
 */
public the_comment()
/**
 * Sets up the current comment.
 *
 * @since 2.2.0
 * @global WP_Comment $comment Global comment object.
 */
public have_comments()
/**
 * Whether there are more comments available.
 *
 * Automatically rewinds comments when finished.
 *
 * @since 2.2.0
 *
 * @return bool True, if more comments. False, if no more posts.
 */
public rewind_comments()
/**
 * Rewind the comments, resets the comment index and comment to first.
 *
 * @since 2.2.0
 */
public query($query)
/**
 * Sets up the WordPress query by parsing query string.
 *
 * @since 1.5.0
 *
 * @param string|array $query URL query string or array of query arguments.
 * @return WP_Post[]|int[] Array of post objects or post IDs.
 */
public get_queried_object()
/**
 * Retrieve queried object.
 *
 * If queried object is not set, then the queried object will be set from
 * the category, tag, taxonomy, posts page, single post, page, or author
 * query variable. After it is set up, it will be returned.
 *
 * @since 1.5.0
 *
 * @return object
 */
public get_queried_object_id()
/**
 * Retrieve ID of the current queried object.
 *
 * @since 1.5.0
 *
 * @return int
 */
public __construct($query = '')
/**
 * Constructor.
 *
 * Sets up the WordPress query, if parameter is not empty.
 *
 * @since 1.5.0
 *
 * @param string|array $query URL query string or array of vars.
 */
public __get($name)
/**
 * Make private properties readable for backward compatibility.
 *
 * @since 4.0.0
 *
 * @param string $name Property to get.
 * @return mixed Property.
 */
public __isset($name)
/**
 * Make private properties checkable for backward compatibility.
 *
 * @since 4.0.0
 *
 * @param string $name Property to check if set.
 * @return bool Whether the property is set.
 */
public __call($name, $arguments)
/**
 * Make private/protected methods readable for backward compatibility.
 *
 * @since 4.0.0
 *
 * @param string   $name      Method to call.
 * @param array    $arguments Arguments to pass when calling.
 * @return mixed|false Return value of the callback, false otherwise.
 */
public is_archive()
/**
 * Is the query for an existing archive page?
 *
 * Month, Year, Category, Author, Post Type archive...
 *
 * @since 3.1.0
 *
 * @return bool
 */
public is_post_type_archive($post_types = '')
/**
 * Is the query for an existing post type archive page?
 *
 * @since 3.1.0
 *
 * @param mixed $post_types Optional. Post type or array of posts types to check against.
 * @return bool
 */
public is_attachment($attachment = '')
/**
 * Is the query for an existing attachment page?
 *
 * @since 3.1.0
 *
 * @param mixed $attachment Attachment ID, title, slug, or array of such.
 * @return bool
 */
public is_author($author = '')
/**
 * Is the query for an existing author archive page?
 *
 * If the $author parameter is specified, this function will additionally
 * check if the query is for one of the authors specified.
 *
 * @since 3.1.0
 *
 * @param mixed $author Optional. User ID, nickname, nicename, or array of User IDs, nicknames, and nicenames
 * @return bool
 */
public is_category($category = '')
/**
 * Is the query for an existing category archive page?
 *
 * If the $category parameter is specified, this function will additionally
 * check if the query is for one of the categories specified.
 *
 * @since 3.1.0
 *
 * @param mixed $category Optional. Category ID, name, slug, or array of Category IDs, names, and slugs.
 * @return bool
 */
public is_tag($tag = '')
/**
 * Is the query for an existing tag archive page?
 *
 * If the $tag parameter is specified, this function will additionally
 * check if the query is for one of the tags specified.
 *
 * @since 3.1.0
 *
 * @param mixed $tag Optional. Tag ID, name, slug, or array of Tag IDs, names, and slugs.
 * @return bool
 */
public is_tax($taxonomy = '', $term = '')
/**
 * Is the query for an existing custom taxonomy archive page?
 *
 * If the $taxonomy parameter is specified, this function will additionally
 * check if the query is for that specific $taxonomy.
 *
 * If the $term parameter is specified in addition to the $taxonomy parameter,
 * this function will additionally check if the query is for one of the terms
 * specified.
 *
 * @since 3.1.0
 *
 * @global array $wp_taxonomies
 *
 * @param mixed $taxonomy Optional. Taxonomy slug or slugs.
 * @param mixed $term     Optional. Term ID, name, slug or array of Term IDs, names, and slugs.
 * @return bool True for custom taxonomy archive pages, false for built-in taxonomies (category and tag archives).
 */
public is_comments_popup()
/**
 * Whether the current URL is within the comments popup window.
 *
 * @since 3.1.0
 * @deprecated 4.5.0
 *
 * @return bool
 */
public is_date()
/**
 * Is the query for an existing date archive?
 *
 * @since 3.1.0
 *
 * @return bool
 */
public is_day()
/**
 * Is the query for an existing day archive?
 *
 * @since 3.1.0
 *
 * @return bool
 */
public is_feed($feeds = '')
/**
 * Is the query for a feed?
 *
 * @since 3.1.0
 *
 * @param string|array $feeds Optional feed types to check.
 * @return bool
 */
public is_comment_feed()
/**
 * Is the query for a comments feed?
 *
 * @since 3.1.0
 *
 * @return bool
 */
public is_front_page()
/**
 * Is the query for the front page of the site?
 *
 * This is for what is displayed at your site's main URL.
 *
 * Depends on the site's "Front page displays" Reading Settings 'show_on_front' and 'page_on_front'.
 *
 * If you set a static page for the front page of your site, this function will return
 * true when viewing that page.
 *
 * Otherwise the same as @see WP_Query::is_home()
 *
 * @since 3.1.0
 *
 * @return bool True, if front of site.
 */
public is_home()
/**
 * Is the query for the blog homepage?
 *
 * This is the page which shows the time based blog content of your site.
 *
 * Depends on the site's "Front page displays" Reading Settings 'show_on_front' and 'page_for_posts'.
 *
 * If you set a static page for the front page of your site, this function will return
 * true only on the page you set as the "Posts page".
 *
 * @see WP_Query::is_front_page()
 *
 * @since 3.1.0
 *
 * @return bool True if blog view homepage.
 */
public is_privacy_policy()
/**
 * Is the query for the Privacy Policy page?
 *
 * This is the page which shows the Privacy Policy content of your site.
 *
 * Depends on the site's "Change your Privacy Policy page" Privacy Settings 'wp_page_for_privacy_policy'.
 *
 * This function will return true only on the page you set as the "Privacy Policy page".
 *
 * @since 5.2.0
 *
 * @return bool True, if Privacy Policy page.
 */
public is_month()
/**
 * Is the query for an existing month archive?
 *
 * @since 3.1.0
 *
 * @return bool
 */
public is_page($page = '')
/**
 * Is the query for an existing single page?
 *
 * If the $page parameter is specified, this function will additionally
 * check if the query is for one of the pages specified.
 *
 * @see WP_Query::is_single()
 * @see WP_Query::is_singular()
 *
 * @since 3.1.0
 *
 * @param int|string|array $page Optional. Page ID, title, slug, path, or array of such. Default empty.
 * @return bool Whether the query is for an existing single page.
 */
public is_paged()
/**
 * Is the query for paged result and not for the first page?
 *
 * @since 3.1.0
 *
 * @return bool
 */
public is_preview()
/**
 * Is the query for a post or page preview?
 *
 * @since 3.1.0
 *
 * @return bool
 */
public is_robots()
/**
 * Is the query for the robots file?
 *
 * @since 3.1.0
 *
 * @return bool
 */
public is_search()
/**
 * Is the query for a search?
 *
 * @since 3.1.0
 *
 * @return bool
 */
public is_single($post = '')
/**
 * Is the query for an existing single post?
 *
 * Works for any post type excluding pages.
 *
 * If the $post parameter is specified, this function will additionally
 * check if the query is for one of the Posts specified.
 *
 * @see WP_Query::is_page()
 * @see WP_Query::is_singular()
 *
 * @since 3.1.0
 *
 * @param int|string|array $post Optional. Post ID, title, slug, path, or array of such. Default empty.
 * @return bool Whether the query is for an existing single post.
 */
public is_singular($post_types = '')
/**
 * Is the query for an existing single post of any post type (post, attachment, page,
 * custom post types)?
 *
 * If the $post_types parameter is specified, this function will additionally
 * check if the query is for one of the Posts Types specified.
 *
 * @see WP_Query::is_page()
 * @see WP_Query::is_single()
 *
 * @since 3.1.0
 *
 * @param string|array $post_types Optional. Post type or array of post types. Default empty.
 * @return bool Whether the query is for an existing single post of any of the given post types.
 */
public is_time()
/**
 * Is the query for a specific time?
 *
 * @since 3.1.0
 *
 * @return bool
 */
public is_trackback()
/**
 * Is the query for a trackback endpoint call?
 *
 * @since 3.1.0
 *
 * @return bool
 */
public is_year()
/**
 * Is the query for an existing year archive?
 *
 * @since 3.1.0
 *
 * @return bool
 */
public is_404()
/**
 * Is the query a 404 (returns no results)?
 *
 * @since 3.1.0
 *
 * @return bool
 */
public is_embed()
/**
 * Is the query for an embedded post?
 *
 * @since 4.4.0
 *
 * @return bool
 */
public is_main_query()
/**
 * Is the query the main query?
 *
 * @since 3.3.0
 *
 * @global WP_Query $wp_query WordPress Query object.
 *
 * @return bool
 */
public setup_postdata($post)
/**
 * Set up global post data.
 *
 * @since 4.1.0
 * @since 4.4.0 Added the ability to pass a post ID to `$post`.
 *
 * @global int     $id
 * @global WP_User $authordata
 * @global string  $currentday
 * @global string  $currentmonth
 * @global int     $page
 * @global array   $pages
 * @global int     $multipage
 * @global int     $more
 * @global int     $numpages
 *
 * @param WP_Post|object|int $post WP_Post instance or Post ID/object.
 * @return true True when finished.
 */
public generate_postdata($post)
/**
 * Generate post data.
 *
 * @since 5.2.0
 *
 * @param WP_Post|object|int $post WP_Post instance or Post ID/object.
 * @return array|bool $elements Elements of post or false on failure.
 */
public reset_postdata()
/**
 * After looping through a nested query, this function
 * restores the $post global to the current post in this query.
 *
 * @since 3.7.0
 *
 * @global WP_Post $post Global post object.
 */
public lazyload_term_meta($check, $term_id)
/**
 * Lazyload term meta for posts in the loop.
 *
 * @since 4.4.0
 * @deprecated 4.5.0 See wp_queue_posts_for_term_meta_lazyload().
 *
 * @param mixed $check
 * @param int   $term_id
 * @return mixed
 */
public lazyload_comment_meta($check, $comment_id)
/**
 * Lazyload comment meta for comments in the loop.
 *
 * @since 4.4.0
 * @deprecated 4.5.0 See wp_queue_comments_for_comment_meta_lazyload().
 *
 * @param mixed $check
 * @param int   $comment_id
 * @return mixed
 */
Complete WP object
· · · · ·(Object, WP, 9 properties)
public_query_vars(Array, 85 elements)
0(String, 1 characters)m1(String, 1 characters)p2(String, 5 characters)posts3(String, 1 characters)w4(String, 3 characters)cat5(String, 12 characters)withcomments6(String, 15 characters)withoutcomments7(String, 1 characters)s8(String, 6 characters)search9(String, 5 characters)exact10(String, 8 characters)sentence11(String, 8 characters)calendar12(String, 4 characters)page13(String, 5 characters)paged14(String, 4 characters)more15(String, 2 characters)tb16(String, 2 characters)pb17(String, 6 characters)author18(String, 5 characters)order19(String, 7 characters)orderby20(String, 4 characters)year21(String, 8 characters)monthnum22(String, 3 characters)day23(String, 4 characters)hour24(String, 6 characters)minute25(String, 6 characters)second26(String, 4 characters)name27(String, 13 characters)category_name28(String, 3 characters)tag29(String, 4 characters)feed30(String, 11 characters)author_name31(String, 8 characters)pagename32(String, 7 characters)page_id33(String, 5 characters)error34(String, 10 characters)attachment35(String, 13 characters)attachment_id36(String, 7 characters)subpost37(String, 10 characters)subpost_id38(String, 7 characters)preview39(String, 6 characters)robots40(String, 8 characters)taxonomy41(String, 4 characters)term42(String, 5 characters)cpage43(String, 9 characters)post_type45(String, 11 characters)post_format46(String, 5 characters)forum47(String, 5 characters)topic48(String, 5 characters)reply49(String, 9 characters)topic-tag50(String, 8 characters)bbp_view51(String, 4 characters)edit52(String, 10 characters)bbp_search53(String, 8 characters)bbp_user54(String, 8 characters)bbp_favs55(String, 8 characters)bbp_subs56(String, 15 characters)bbp_engagements57(String, 8 characters)bbp_tops58(String, 8 characters)bbp_reps59(String, 6 characters)answer60(String, 6 characters)plugin61(String, 5 characters)qacat62(String, 6 characters)qaterm63(String, 7 characters)plugcat64(String, 11 characters)post_plugin65(String, 6 characters)qaplug66(String, 12 characters)topic-prefix67(String, 10 characters)rest_route68(String, 10 characters)newsletter69(String, 12 characters)bbhelp_xtrnl70(String, 16 characters)cpt_postid_qanda71(String, 17 characters)cpt_postid_plugin72(String, 9 characters)tax_index73(String, 9 characters)_mailster74(String, 14 characters)_mailster_page75(String, 14 characters)_mailster_hash76(String, 15 characters)_mailster_extra77(String, 14 characters)_mailster_cron78(String, 14 characters)_mailster_form79(String, 9 characters)gdseo_map80(String, 10 characters)gdseo_type81(String, 12 characters)gdrts_method82(String, 12 characters)gdrts_series83(String, 11 characters)gdrts_value84(String, 11 characters)gdrts_scope85(String, 9 characters)gdrts_min
private_query_vars(Array, 26 elements)
0(String, 6 characters)offset1(String, 14 characters)posts_per_page2(String, 22 characters)posts_per_archive_page3(String, 9 characters)showposts4(String, 8 characters)nopaging5(String, 9 characters)post_type6(String, 11 characters)post_status7(String, 12 characters)category__in8(String, 16 characters)category__not_in9(String, 13 characters)category__and10(String, 7 characters)tag__in11(String, 11 characters)tag__not_in12(String, 8 characters)tag__and13(String, 12 characters)tag_slug__in14(String, 13 characters)tag_slug__and15(String, 6 characters)tag_id16(String, 14 characters)post_mime_type17(String, 4 characters)perm18(String, 17 characters)comments_per_page19(String, 8 characters)post__in20(String, 12 characters)post__not_in21(String, 11 characters)post_parent22(String, 15 characters)post_parent__in23(String, 19 characters)post_parent__not_in24(String, 5 characters)title25(String, 6 characters)fields
extra_query_vars(Array, 0 elements)
Empty Array
query_vars(Array, 1 elements)
bbp_view(String, 16 characters)topics-freshness
query_string(String, 25 characters)bbp_view=topics-freshnessrequest(String, 28 characters)forums/view/topics-freshnessmatched_rule(String, 22 characters)forums/view/([^/]+)/?$matched_query(String, 25 characters)bbp_view=topics-freshnessdid_permalink(Boolean)TRUEpublic add_query_var($qv)
/**
 * Add name to list of public query variables.
 *
 * @since 2.1.0
 *
 * @param string $qv Query variable name.
 */
public remove_query_var($name)
/**
 * Removes a query variable from a list of public query variables.
 *
 * @since 4.5.0
 *
 * @param string $name Query variable name.
 */
public set_query_var($key, $value)
/**
 * Set the value of a query variable.
 *
 * @since 2.3.0
 *
 * @param string $key Query variable name.
 * @param mixed $value Query variable value.
 */
public parse_request($extra_query_vars = '')
/**
 * Parse request to find correct WordPress query.
 *
 * Sets up the query variables based on the request. There are also many
 * filters and actions that can be used to further manipulate the result.
 *
 * @since 2.0.0
 *
 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
 *
 * @param array|string $extra_query_vars Set the extra query variables.
 */
public send_headers()
/**
 * Sends additional HTTP headers for caching, content type, etc.
 *
 * Sets the Content-Type header. Sets the 'error' status (if passed) and optionally exits.
 * If showing a feed, it will also send Last-Modified, ETag, and 304 status if needed.
 *
 * @since 2.0.0
 * @since 4.4.0 `X-Pingback` header is added conditionally after posts have been queried in handle_404().
 */
public build_query_string()
/**
 * Sets the query string property based off of the query variable property.
 *
 * The {@see 'query_string'} filter is deprecated, but still works. Plugins should
 * use the {@see 'request'} filter instead.
 *
 * @since 2.0.0
 */
public register_globals()
/**
 * Set up the WordPress Globals.
 *
 * The query_vars property will be extracted to the GLOBALS. So care should
 * be taken when naming global variables that might interfere with the
 * WordPress environment.
 *
 * @since 2.0.0
 *
 * @global WP_Query     $wp_query     WordPress Query object.
 * @global string       $query_string Query string for the loop.
 * @global array        $posts        The found posts.
 * @global WP_Post|null $post         The current post, if available.
 * @global string       $request      The SQL statement for the request.
 * @global int          $more         Only set, if single page or post.
 * @global int          $single       If single page or post. Only set, if single page or post.
 * @global WP_User      $authordata   Only set, if author archive.
 */
public init()
/**
 * Set up the current user.
 *
 * @since 2.0.0
 */
public query_posts()
/**
 * Set up the Loop based on the query variables.
 *
 * @since 2.0.0
 *
 * @global WP_Query $wp_the_query WordPress Query object.
 */
public handle_404()
/**
 * Set the Headers for 404, if nothing is found for requested URL.
 *
 * Issue a 404 if a request doesn't match any posts and doesn't match
 * any object (e.g. an existing-but-empty category, tag, author) and a 404 was not already
 * issued, and if the request was not a search or the homepage.
 *
 * Otherwise, issue a 200.
 *
 * This sets headers after posts have been queried. handle_404() really means "handle status."
 * By inspecting the result of querying posts, seemingly successful requests can be switched to
 * a 404 so that canonical redirection logic can kick in.
 *
 * @since 2.0.0
 *
 * @global WP_Query $wp_query WordPress Query object.
 */
public main($query_args = '')
/**
 * Sets up all of the variables required by the WordPress environment.
 *
 * The action {@see 'wp'} has one parameter that references the WP object. It
 * allows for accessing the properties and methods to further manipulate the
 * object.
 *
 * @since 2.0.0
 *
 * @param string|array $query_args Passed to parse_request().
 */
Registered Post Types
NameValue
post
· · · · ·(Object, WP_Post_Type, 30 properties)
name(String, 4 characters)postlabel(String, 5 characters)Postslabels(Object, stdClass, 31 properties)
name(String, 5 characters)Postssingular_name(String, 4 characters)Postadd_new(String, 7 characters)Add Newadd_new_item(String, 12 characters)Add New Postedit_item(String, 9 characters)Edit Postnew_item(String, 8 characters)New Postview_item(String, 9 characters)View Postview_items(String, 10 characters)View Postssearch_items(String, 12 characters)Search Postsnot_found(String, 15 characters)No posts found.not_found_in_trash(String, 24 characters)No posts found in Trash.parent_item_colon(NULL)all_items(String, 9 characters)All Postsarchives(String, 13 characters)Post Archivesattributes(String, 15 characters)Post Attributesinsert_into_item(String, 16 characters)Insert into postuploaded_to_this_item(String, 21 characters)Uploaded to this postfeatured_image(String, 14 characters)Featured Imageset_featured_image(String, 18 characters)Set featured imageremove_featured_image(String, 21 characters)Remove featured imageuse_featured_image(String, 21 characters)Use as featured imagefilter_items_list(String, 17 characters)Filter posts listitems_list_navigation(String, 21 characters)Posts list navigationitems_list(String, 10 characters)Posts listitem_published(String, 15 characters)Post published.item_published_privately(String, 25 characters)Post published privately.item_reverted_to_draft(String, 23 characters)Post reverted to draft.item_scheduled(String, 15 characters)Post scheduled.item_updated(String, 13 characters)Post updated.menu_name(String, 5 characters)Postsname_admin_bar(String, 4 characters)PostNo Methods
description(String, 0 characters)public(Boolean)TRUEhierarchical(Boolean)FALSEexclude_from_search(Boolean)FALSEpublicly_queryable(Boolean)TRUEshow_ui(Boolean)TRUEshow_in_menu(Boolean)TRUEshow_in_nav_menus(Boolean)TRUEshow_in_admin_bar(Boolean)TRUEmenu_position(Integer)5menu_icon(NULL)capability_type(String, 4 characters)postmap_meta_cap(Boolean)TRUEregister_meta_box_cb(NULL)taxonomies(Array, 0 elements)
Empty Array
has_archive(Boolean)FALSEquery_var(Boolean)FALSEcan_export(Boolean)TRUEdelete_with_user(Boolean)TRUE_builtin(Boolean)TRUE_edit_link(String, 16 characters)post.php?post=%dcap(Object, stdClass, 15 properties)
edit_post(String, 9 characters)edit_postread_post(String, 9 characters)read_postdelete_post(String, 11 characters)delete_postedit_posts(String, 10 characters)edit_postsedit_others_posts(String, 17 characters)edit_others_postspublish_posts(String, 13 characters)publish_postsread_private_posts(String, 18 characters)read_private_postsread(String, 4 characters)readdelete_posts(String, 12 characters)delete_postsdelete_private_posts(String, 20 characters)delete_private_postsdelete_published_posts(String, 22 characters)delete_published_postsdelete_others_posts(String, 19 characters)delete_others_postsedit_private_posts(String, 18 characters)edit_private_postsedit_published_posts(String, 20 characters)edit_published_postscreate_posts(String, 10 characters)edit_postsNo Methods
rewrite(Boolean)FALSEshow_in_rest(Boolean)TRUErest_base(String, 5 characters)postsrest_controller_class(String, 24 characters)WP_REST_Posts_Controllerrest_controller(NULL)public __construct($post_type, $args = array ( ))
/**
 * Constructor.
 *
 * Will populate object properties from the provided arguments and assign other
 * default properties based on that information.
 *
 * @since 4.6.0
 *
 * @see register_post_type()
 *
 * @param string       $post_type Post type key.
 * @param array|string $args      Optional. Array or string of arguments for registering a post type.
 *                                Default empty array.
 */
public set_props($args)
/**
 * Sets post type properties.
 *
 * @since 4.6.0
 *
 * @param array|string $args Array or string of arguments for registering a post type.
 */
public add_supports()
/**
 * Sets the features support for the post type.
 *
 * @since 4.6.0
 */
public add_rewrite_rules()
/**
 * Adds the necessary rewrite rules for the post type.
 *
 * @since 4.6.0
 *
 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
 * @global WP         $wp         Current WordPress environment instance.
 */
public register_meta_boxes()
/**
 * Registers the post type meta box if a custom callback was specified.
 *
 * @since 4.6.0
 */
public add_hooks()
/**
 * Adds the future post hook action for the post type.
 *
 * @since 4.6.0
 */
public register_taxonomies()
/**
 * Registers the taxonomies for the post type.
 *
 * @since 4.6.0
 */
public remove_supports()
/**
 * Removes the features support for the post type.
 *
 * @since 4.6.0
 *
 * @global array $_wp_post_type_features Post type features.
 */
public remove_rewrite_rules()
/**
 * Removes any rewrite rules, permastructs, and rules for the post type.
 *
 * @since 4.6.0
 *
 * @global WP_Rewrite $wp_rewrite          WordPress rewrite component.
 * @global WP         $wp                  Current WordPress environment instance.
 * @global array      $post_type_meta_caps Used to remove meta capabilities.
 */
public unregister_meta_boxes()
/**
 * Unregisters the post type meta box if a custom callback was specified.
 *
 * @since 4.6.0
 */
public unregister_taxonomies()
/**
 * Removes the post type from all taxonomies.
 *
 * @since 4.6.0
 */
public remove_hooks()
/**
 * Removes the future post hook action for the post type.
 *
 * @since 4.6.0
 */
public get_rest_controller()
/**
 * Gets the REST API controller for this post type.
 *
 * Will only instantiate the controller class once per request.
 *
 * @since 5.3.0
 *
 * @return WP_REST_Controller|null The controller instance, or null if the post type
 *                                 is set not to show in rest.
 */
page
· · · · ·(Object, WP_Post_Type, 30 properties)
name(String, 4 characters)pagelabel(String, 5 characters)Pageslabels(Object, stdClass, 31 properties)
name(String, 5 characters)Pagessingular_name(String, 4 characters)Pageadd_new(String, 7 characters)Add Newadd_new_item(String, 12 characters)Add New Pageedit_item(String, 9 characters)Edit Pagenew_item(String, 8 characters)New Pageview_item(String, 9 characters)View Pageview_items(String, 10 characters)View Pagessearch_items(String, 12 characters)Search Pagesnot_found(String, 15 characters)No pages found.not_found_in_trash(String, 24 characters)No pages found in Trash.parent_item_colon(String, 12 characters)Parent Page:all_items(String, 9 characters)All Pagesarchives(String, 13 characters)Page Archivesattributes(String, 15 characters)Page Attributesinsert_into_item(String, 16 characters)Insert into pageuploaded_to_this_item(String, 21 characters)Uploaded to this pagefeatured_image(String, 14 characters)Featured Imageset_featured_image(String, 18 characters)Set featured imageremove_featured_image(String, 21 characters)Remove featured imageuse_featured_image(String, 21 characters)Use as featured imagefilter_items_list(String, 17 characters)Filter pages listitems_list_navigation(String, 21 characters)Pages list navigationitems_list(String, 10 characters)Pages listitem_published(String, 15 characters)Page published.item_published_privately(String, 25 characters)Page published privately.item_reverted_to_draft(String, 23 characters)Page reverted to draft.item_scheduled(String, 15 characters)Page scheduled.item_updated(String, 13 characters)Page updated.menu_name(String, 5 characters)Pagesname_admin_bar(String, 4 characters)PageNo Methods
description(String, 0 characters)public(Boolean)TRUEhierarchical(Boolean)TRUEexclude_from_search(Boolean)FALSEpublicly_queryable(Boolean)FALSEshow_ui(Boolean)TRUEshow_in_menu(Boolean)TRUEshow_in_nav_menus(Boolean)TRUEshow_in_admin_bar(Boolean)TRUEmenu_position(Integer)20menu_icon(NULL)capability_type(String, 4 characters)pagemap_meta_cap(Boolean)TRUEregister_meta_box_cb(NULL)taxonomies(Array, 0 elements)
Empty Array
has_archive(Boolean)FALSEquery_var(Boolean)FALSEcan_export(Boolean)TRUEdelete_with_user(Boolean)TRUE_builtin(Boolean)TRUE_edit_link(String, 16 characters)post.php?post=%dcap(Object, stdClass, 15 properties)
edit_post(String, 9 characters)edit_pageread_post(String, 9 characters)read_pagedelete_post(String, 11 characters)delete_pageedit_posts(String, 10 characters)edit_pagesedit_others_posts(String, 17 characters)edit_others_pagespublish_posts(String, 13 characters)publish_pagesread_private_posts(String, 18 characters)read_private_pagesread(String, 4 characters)readdelete_posts(String, 12 characters)delete_pagesdelete_private_posts(String, 20 characters)delete_private_pagesdelete_published_posts(String, 22 characters)delete_published_pagesdelete_others_posts(String, 19 characters)delete_others_pagesedit_private_posts(String, 18 characters)edit_private_pagesedit_published_posts(String, 20 characters)edit_published_pagescreate_posts(String, 10 characters)edit_pagesNo Methods
rewrite(Boolean)FALSEshow_in_rest(Boolean)TRUErest_base(String, 5 characters)pagesrest_controller_class(String, 24 characters)WP_REST_Posts_Controllerrest_controller(NULL)public __construct($post_type, $args = array ( ))
/**
 * Constructor.
 *
 * Will populate object properties from the provided arguments and assign other
 * default properties based on that information.
 *
 * @since 4.6.0
 *
 * @see register_post_type()
 *
 * @param string       $post_type Post type key.
 * @param array|string $args      Optional. Array or string of arguments for registering a post type.
 *                                Default empty array.
 */
public set_props($args)
/**
 * Sets post type properties.
 *
 * @since 4.6.0
 *
 * @param array|string $args Array or string of arguments for registering a post type.
 */
public add_supports()
/**
 * Sets the features support for the post type.
 *
 * @since 4.6.0
 */
public add_rewrite_rules()
/**
 * Adds the necessary rewrite rules for the post type.
 *
 * @since 4.6.0
 *
 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
 * @global WP         $wp         Current WordPress environment instance.
 */
public register_meta_boxes()
/**
 * Registers the post type meta box if a custom callback was specified.
 *
 * @since 4.6.0
 */
public add_hooks()
/**
 * Adds the future post hook action for the post type.
 *
 * @since 4.6.0
 */
public register_taxonomies()
/**
 * Registers the taxonomies for the post type.
 *
 * @since 4.6.0
 */
public remove_supports()
/**
 * Removes the features support for the post type.
 *
 * @since 4.6.0
 *
 * @global array $_wp_post_type_features Post type features.
 */
public remove_rewrite_rules()
/**
 * Removes any rewrite rules, permastructs, and rules for the post type.
 *
 * @since 4.6.0
 *
 * @global WP_Rewrite $wp_rewrite          WordPress rewrite component.
 * @global WP         $wp                  Current WordPress environment instance.
 * @global array      $post_type_meta_caps Used to remove meta capabilities.
 */
public unregister_meta_boxes()
/**
 * Unregisters the post type meta box if a custom callback was specified.
 *
 * @since 4.6.0
 */
public unregister_taxonomies()
/**
 * Removes the post type from all taxonomies.
 *
 * @since 4.6.0
 */
public remove_hooks()
/**
 * Removes the future post hook action for the post type.
 *
 * @since 4.6.0
 */
public get_rest_controller()
/**
 * Gets the REST API controller for this post type.
 *
 * Will only instantiate the controller class once per request.
 *
 * @since 5.3.0
 *
 * @return WP_REST_Controller|null The controller instance, or null if the post type
 *                                 is set not to show in rest.
 */
attachment
· · · · ·(Object, WP_Post_Type, 30 properties)
name(String, 10 characters)attachmentlabel(String, 5 characters)Medialabels(Object, stdClass, 31 properties)
name(String, 5 characters)Mediasingular_name(String, 5 characters)Mediaadd_new(String, 7 characters)Add Newadd_new_item(String, 12 characters)Add New Postedit_item(String, 10 characters)Edit Medianew_item(String, 8 characters)New Postview_item(String, 20 characters)View Attachment Pageview_items(String, 10 characters)View Postssearch_items(String, 12 characters)Search Postsnot_found(String, 15 characters)No posts found.not_found_in_trash(String, 24 characters)No posts found in Trash.parent_item_colon(NULL)all_items(String, 5 characters)Mediaarchives(String, 5 characters)Mediaattributes(String, 21 characters)Attachment Attributesinsert_into_item(String, 16 characters)Insert into postuploaded_to_this_item(String, 21 characters)Uploaded to this postfeatured_image(String, 14 characters)Featured Imageset_featured_image(String, 18 characters)Set featured imageremove_featured_image(String, 21 characters)Remove featured imageuse_featured_image(String, 21 characters)Use as featured imagefilter_items_list(String, 17 characters)Filter posts listitems_list_navigation(String, 21 characters)Posts list navigationitems_list(String, 10 characters)Posts listitem_published(String, 15 characters)Post published.item_published_privately(String, 25 characters)Post published privately.item_reverted_to_draft(String, 23 characters)Post reverted to draft.item_scheduled(String, 15 characters)Post scheduled.item_updated(String, 13 characters)Post updated.menu_name(String, 5 characters)Medianame_admin_bar(String, 5 characters)MediaNo Methods
description(String, 0 characters)public(Boolean)TRUEhierarchical(Boolean)FALSEexclude_from_search(Boolean)FALSEpublicly_queryable(Boolean)TRUEshow_ui(Boolean)TRUEshow_in_menu(Boolean)TRUEshow_in_nav_menus(Boolean)FALSEshow_in_admin_bar(Boolean)TRUEmenu_position(NULL)menu_icon(NULL)capability_type(String, 4 characters)postmap_meta_cap(Boolean)TRUEregister_meta_box_cb(NULL)taxonomies(Array, 0 elements)
Empty Array
has_archive(Boolean)FALSEquery_var(Boolean)FALSEcan_export(Boolean)TRUEdelete_with_user(Boolean)TRUE_builtin(Boolean)TRUE_edit_link(String, 16 characters)post.php?post=%dcap(Object, stdClass, 15 properties)
edit_post(String, 9 characters)edit_postread_post(String, 9 characters)read_postdelete_post(String, 11 characters)delete_postedit_posts(String, 10 characters)edit_postsedit_others_posts(String, 17 characters)edit_others_postspublish_posts(String, 13 characters)publish_postsread_private_posts(String, 18 characters)read_private_postsread(String, 4 characters)readdelete_posts(String, 12 characters)delete_postsdelete_private_posts(String, 20 characters)delete_private_postsdelete_published_posts(String, 22 characters)delete_published_postsdelete_others_posts(String, 19 characters)delete_others_postsedit_private_posts(String, 18 characters)edit_private_postsedit_published_posts(String, 20 characters)edit_published_postscreate_posts(String, 12 characters)upload_filesNo Methods
rewrite(Boolean)FALSEshow_in_rest(Boolean)TRUErest_base(String, 5 characters)mediarest_controller_class(String, 30 characters)WP_REST_Attachments_Controllerrest_controller(NULL)public __construct($post_type, $args = array ( ))
/**
 * Constructor.
 *
 * Will populate object properties from the provided arguments and assign other
 * default properties based on that information.
 *
 * @since 4.6.0
 *
 * @see register_post_type()
 *
 * @param string       $post_type Post type key.
 * @param array|string $args      Optional. Array or string of arguments for registering a post type.
 *                                Default empty array.
 */
public set_props($args)
/**
 * Sets post type properties.
 *
 * @since 4.6.0
 *
 * @param array|string $args Array or string of arguments for registering a post type.
 */
public add_supports()
/**
 * Sets the features support for the post type.
 *
 * @since 4.6.0
 */
public add_rewrite_rules()
/**
 * Adds the necessary rewrite rules for the post type.
 *
 * @since 4.6.0
 *
 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
 * @global WP         $wp         Current WordPress environment instance.
 */
public register_meta_boxes()
/**
 * Registers the post type meta box if a custom callback was specified.
 *
 * @since 4.6.0
 */
public add_hooks()
/**
 * Adds the future post hook action for the post type.
 *
 * @since 4.6.0
 */
public register_taxonomies()
/**
 * Registers the taxonomies for the post type.
 *
 * @since 4.6.0
 */
public remove_supports()
/**
 * Removes the features support for the post type.
 *
 * @since 4.6.0
 *
 * @global array $_wp_post_type_features Post type features.
 */
public remove_rewrite_rules()
/**
 * Removes any rewrite rules, permastructs, and rules for the post type.
 *
 * @since 4.6.0
 *
 * @global WP_Rewrite $wp_rewrite          WordPress rewrite component.
 * @global WP         $wp                  Current WordPress environment instance.
 * @global array      $post_type_meta_caps Used to remove meta capabilities.
 */
public unregister_meta_boxes()
/**
 * Unregisters the post type meta box if a custom callback was specified.
 *
 * @since 4.6.0
 */
public unregister_taxonomies()
/**
 * Removes the post type from all taxonomies.
 *
 * @since 4.6.0
 */
public remove_hooks()
/**
 * Removes the future post hook action for the post type.
 *
 * @since 4.6.0
 */
public get_rest_controller()
/**
 * Gets the REST API controller for this post type.
 *
 * Will only instantiate the controller class once per request.
 *
 * @since 5.3.0
 *
 * @return WP_REST_Controller|null The controller instance, or null if the post type
 *                                 is set not to show in rest.
 */
revision
· · · · ·(Object, WP_Post_Type, 30 properties)
name(String, 8 characters)revisionlabel(String, 9 characters)Revisionslabels(Object, stdClass, 31 properties)
name(String, 9 characters)Revisionssingular_name(String, 8 characters)Revisionadd_new(String, 7 characters)Add Newadd_new_item(String, 12 characters)Add New Postedit_item(String, 9 characters)Edit Postnew_item(String, 8 characters)New Postview_item(String, 9 characters)View Postview_items(String, 10 characters)View Postssearch_items(String, 12 characters)Search Postsnot_found(String, 15 characters)No posts found.not_found_in_trash(String, 24 characters)No posts found in Trash.parent_item_colon(NULL)all_items(String, 9 characters)Revisionsarchives(String, 9 characters)Revisionsattributes(String, 15 characters)Post Attributesinsert_into_item(String, 16 characters)Insert into postuploaded_to_this_item(String, 21 characters)Uploaded to this postfeatured_image(String, 14 characters)Featured Imageset_featured_image(String, 18 characters)Set featured imageremove_featured_image(String, 21 characters)Remove featured imageuse_featured_image(String, 21 characters)Use as featured imagefilter_items_list(String, 17 characters)Filter posts listitems_list_navigation(String, 21 characters)Posts list navigationitems_list(String, 10 characters)Posts listitem_published(String, 15 characters)Post published.item_published_privately(String, 25 characters)Post published privately.item_reverted_to_draft(String, 23 characters)Post reverted to draft.item_scheduled(String, 15 characters)Post scheduled.item_updated(String, 13 characters)Post updated.menu_name(String, 9 characters)Revisionsname_admin_bar(String, 8 characters)RevisionNo Methods
description(String, 0 characters)public(Boolean)FALSEhierarchical(Boolean)FALSEexclude_from_search(Boolean)TRUEpublicly_queryable(Boolean)FALSEshow_ui(Boolean)FALSEshow_in_menu(Boolean)FALSEshow_in_nav_menus(Boolean)FALSEshow_in_admin_bar(Boolean)FALSEmenu_position(NULL)menu_icon(NULL)capability_type(String, 4 characters)postmap_meta_cap(Boolean)TRUEregister_meta_box_cb(NULL)taxonomies(Array, 0 elements)
Empty Array
has_archive(Boolean)FALSEquery_var(Boolean)FALSEcan_export(Boolean)FALSEdelete_with_user(Boolean)TRUE_builtin(Boolean)TRUE_edit_link(String, 24 characters)revision.php?revision=%dcap(Object, stdClass, 15 properties)
edit_post(String, 9 characters)edit_postread_post(String, 9 characters)read_postdelete_post(String, 11 characters)delete_postedit_posts(String, 10 characters)edit_postsedit_others_posts(String, 17 characters)edit_others_postspublish_posts(String, 13 characters)publish_postsread_private_posts(String, 18 characters)read_private_postsread(String, 4 characters)readdelete_posts(String, 12 characters)delete_postsdelete_private_posts(String, 20 characters)delete_private_postsdelete_published_posts(String, 22 characters)delete_published_postsdelete_others_posts(String, 19 characters)delete_others_postsedit_private_posts(String, 18 characters)edit_private_postsedit_published_posts(String, 20 characters)edit_published_postscreate_posts(String, 10 characters)edit_postsNo Methods
rewrite(Boolean)FALSEshow_in_rest(Boolean)FALSErest_base(Boolean)FALSErest_controller_class(Boolean)FALSErest_controller(NULL)public __construct($post_type, $args = array ( ))
/**
 * Constructor.
 *
 * Will populate object properties from the provided arguments and assign other
 * default properties based on that information.
 *
 * @since 4.6.0
 *
 * @see register_post_type()
 *
 * @param string       $post_type Post type key.
 * @param array|string $args      Optional. Array or string of arguments for registering a post type.
 *                                Default empty array.
 */
public set_props($args)
/**
 * Sets post type properties.
 *
 * @since 4.6.0
 *
 * @param array|string $args Array or string of arguments for registering a post type.
 */
public add_supports()
/**
 * Sets the features support for the post type.
 *
 * @since 4.6.0
 */
public add_rewrite_rules()
/**
 * Adds the necessary rewrite rules for the post type.
 *
 * @since 4.6.0
 *
 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
 * @global WP         $wp         Current WordPress environment instance.
 */
public register_meta_boxes()
/**
 * Registers the post type meta box if a custom callback was specified.
 *
 * @since 4.6.0
 */
public add_hooks()
/**
 * Adds the future post hook action for the post type.
 *
 * @since 4.6.0
 */
public register_taxonomies()
/**
 * Registers the taxonomies for the post type.
 *
 * @since 4.6.0
 */
public remove_supports()
/**
 * Removes the features support for the post type.
 *
 * @since 4.6.0
 *
 * @global array $_wp_post_type_features Post type features.
 */
public remove_rewrite_rules()
/**
 * Removes any rewrite rules, permastructs, and rules for the post type.
 *
 * @since 4.6.0
 *
 * @global WP_Rewrite $wp_rewrite          WordPress rewrite component.
 * @global WP         $wp                  Current WordPress environment instance.
 * @global array      $post_type_meta_caps Used to remove meta capabilities.
 */
public unregister_meta_boxes()
/**
 * Unregisters the post type meta box if a custom callback was specified.
 *
 * @since 4.6.0
 */
public unregister_taxonomies()
/**
 * Removes the post type from all taxonomies.
 *
 * @since 4.6.0
 */
public remove_hooks()
/**
 * Removes the future post hook action for the post type.
 *
 * @since 4.6.0
 */
public get_rest_controller()
/**
 * Gets the REST API controller for this post type.
 *
 * Will only instantiate the controller class once per request.
 *
 * @since 5.3.0
 *
 * @return WP_REST_Controller|null The controller instance, or null if the post type
 *                                 is set not to show in rest.
 */
nav_menu_item
· · · · ·(Object, WP_Post_Type, 31 properties)
name(String, 13 characters)nav_menu_itemlabel(String, 21 characters)Navigation Menu Itemslabels(Object, stdClass, 31 properties)
name(String, 21 characters)Navigation Menu Itemssingular_name(String, 20 characters)Navigation Menu Itemadd_new(String, 7 characters)Add Newadd_new_item(String, 12 characters)Add New Postedit_item(String, 9 characters)Edit Postnew_item(String, 8 characters)New Postview_item(String, 9 characters)View Postview_items(String, 10 characters)View Postssearch_items(String, 12 characters)Search Postsnot_found(String, 15 characters)No posts found.not_found_in_trash(String, 24 characters)No posts found in Trash.parent_item_colon(NULL)all_items(String, 21 characters)Navigation Menu Itemsarchives(String, 21 characters)Navigation Menu Itemsattributes(String, 15 characters)Post Attributesinsert_into_item(String, 16 characters)Insert into postuploaded_to_this_item(String, 21 characters)Uploaded to this postfeatured_image(String, 14 characters)Featured Imageset_featured_image(String, 18 characters)Set featured imageremove_featured_image(String, 21 characters)Remove featured imageuse_featured_image(String, 21 characters)Use as featured imagefilter_items_list(String, 17 characters)Filter posts listitems_list_navigation(String, 21 characters)Posts list navigationitems_list(String, 10 characters)Posts listitem_published(String, 15 characters)Post published.item_published_privately(String, 25 characters)Post published privately.item_reverted_to_draft(String, 23 characters)Post reverted to draft.item_scheduled(String, 15 characters)Post scheduled.item_updated(String, 13 characters)Post updated.menu_name(String, 21 characters)Navigation Menu Itemsname_admin_bar(String, 20 characters)Navigation Menu ItemNo Methods
description(String, 0 characters)public(Boolean)FALSEhierarchical(Boolean)FALSEexclude_from_search(Boolean)TRUEpublicly_queryable(Boolean)FALSEshow_ui(Boolean)FALSEshow_in_menu(Boolean)FALSEshow_in_nav_menus(Boolean)FALSEshow_in_admin_bar(Boolean)FALSEmenu_position(NULL)menu_icon(NULL)capability_type(String, 4 characters)postmap_meta_cap(Boolean)TRUEregister_meta_box_cb(NULL)taxonomies(Array, 0 elements)
Empty Array
has_archive(Boolean)FALSEquery_var(Boolean)FALSEcan_export(Boolean)TRUEdelete_with_user(Boolean)FALSE_builtin(Boolean)TRUE_edit_link(String, 0 characters)cap(Object, stdClass, 15 properties)
edit_post(String, 9 characters)edit_postread_post(String, 9 characters)read_postdelete_post(String, 11 characters)delete_postedit_posts(String, 10 characters)edit_postsedit_others_posts(String, 17 characters)edit_others_postspublish_posts(String, 13 characters)publish_postsread_private_posts(String, 18 characters)read_private_postsread(String, 4 characters)readdelete_posts(String, 12 characters)delete_postsdelete_private_posts(String, 20 characters)delete_private_postsdelete_published_posts(String, 22 characters)delete_published_postsdelete_others_posts(String, 19 characters)delete_others_postsedit_private_posts(String, 18 characters)edit_private_postsedit_published_posts(String, 20 characters)edit_published_postscreate_posts(String, 10 characters)edit_postsNo Methods
rewrite(Boolean)FALSEsupports(Array, 0 elements)
Empty Array
show_in_rest(Boolean)FALSErest_base(Boolean)FALSErest_controller_class(Boolean)FALSErest_controller(NULL)public __construct($post_type, $args = array ( ))
/**
 * Constructor.
 *
 * Will populate object properties from the provided arguments and assign other
 * default properties based on that information.
 *
 * @since 4.6.0
 *
 * @see register_post_type()
 *
 * @param string       $post_type Post type key.
 * @param array|string $args      Optional. Array or string of arguments for registering a post type.
 *                                Default empty array.
 */
public set_props($args)
/**
 * Sets post type properties.
 *
 * @since 4.6.0
 *
 * @param array|string $args Array or string of arguments for registering a post type.
 */
public add_supports()
/**
 * Sets the features support for the post type.
 *
 * @since 4.6.0
 */
public add_rewrite_rules()
/**
 * Adds the necessary rewrite rules for the post type.
 *
 * @since 4.6.0
 *
 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
 * @global WP         $wp         Current WordPress environment instance.
 */
public register_meta_boxes()
/**
 * Registers the post type meta box if a custom callback was specified.
 *
 * @since 4.6.0
 */
public add_hooks()
/**
 * Adds the future post hook action for the post type.
 *
 * @since 4.6.0
 */
public register_taxonomies()
/**
 * Registers the taxonomies for the post type.
 *
 * @since 4.6.0
 */
public remove_supports()
/**
 * Removes the features support for the post type.
 *
 * @since 4.6.0
 *
 * @global array $_wp_post_type_features Post type features.
 */
public remove_rewrite_rules()
/**
 * Removes any rewrite rules, permastructs, and rules for the post type.
 *
 * @since 4.6.0
 *
 * @global WP_Rewrite $wp_rewrite          WordPress rewrite component.
 * @global WP         $wp                  Current WordPress environment instance.
 * @global array      $post_type_meta_caps Used to remove meta capabilities.
 */
public unregister_meta_boxes()
/**
 * Unregisters the post type meta box if a custom callback was specified.
 *
 * @since 4.6.0
 */
public unregister_taxonomies()
/**
 * Removes the post type from all taxonomies.
 *
 * @since 4.6.0
 */
public remove_hooks()
/**
 * Removes the future post hook action for the post type.
 *
 * @since 4.6.0
 */
public get_rest_controller()
/**
 * Gets the REST API controller for this post type.
 *
 * Will only instantiate the controller class once per request.
 *
 * @since 5.3.0
 *
 * @return WP_REST_Controller|null The controller instance, or null if the post type
 *                                 is set not to show in rest.
 */
custom_css
· · · · ·(Object, WP_Post_Type, 30 properties)
name(String, 10 characters)custom_csslabel(String, 10 characters)Custom CSSlabels(Object, stdClass, 31 properties)
name(String, 10 characters)Custom CSSsingular_name(String, 10 characters)Custom CSSadd_new(String, 7 characters)Add Newadd_new_item(String, 12 characters)Add New Postedit_item(String, 9 characters)Edit Postnew_item(String, 8 characters)New Postview_item(String, 9 characters)View Postview_items(String, 10 characters)View Postssearch_items(String, 12 characters)Search Postsnot_found(String, 15 characters)No posts found.not_found_in_trash(String, 24 characters)No posts found in Trash.parent_item_colon(NULL)all_items(String, 10 characters)Custom CSSarchives(String, 10 characters)Custom CSSattributes(String, 15 characters)Post Attributesinsert_into_item(String, 16 characters)Insert into postuploaded_to_this_item(String, 21 characters)Uploaded to this postfeatured_image(String, 14 characters)Featured Imageset_featured_image(String, 18 characters)Set featured imageremove_featured_image(String, 21 characters)Remove featured imageuse_featured_image(String, 21 characters)Use as featured imagefilter_items_list(String, 17 characters)Filter posts listitems_list_navigation(String, 21 characters)Posts list navigationitems_list(String, 10 characters)Posts listitem_published(String, 15 characters)Post published.item_published_privately(String, 25 characters)Post published privately.item_reverted_to_draft(String, 23 characters)Post reverted to draft.item_scheduled(String, 15 characters)Post scheduled.item_updated(String, 13 characters)Post updated.menu_name(String, 10 characters)Custom CSSname_admin_bar(String, 10 characters)Custom CSSNo Methods
description(String, 0 characters)public(Boolean)FALSEhierarchical(Boolean)FALSEexclude_from_search(Boolean)TRUEpublicly_queryable(Boolean)FALSEshow_ui(Boolean)FALSEshow_in_menu(Boolean)FALSEshow_in_nav_menus(Boolean)FALSEshow_in_admin_bar(Boolean)FALSEmenu_position(NULL)menu_icon(NULL)capability_type(String, 4 characters)postmap_meta_cap(Boolean)FALSEregister_meta_box_cb(NULL)taxonomies(Array, 0 elements)
Empty Array
has_archive(Boolean)FALSEquery_var(Boolean)FALSEcan_export(Boolean)TRUEdelete_with_user(Boolean)FALSE_builtin(Boolean)TRUE_edit_link(String, 0 characters)cap(Object, stdClass, 13 properties)
edit_post(String, 8 characters)edit_cssread_post(String, 4 characters)readdelete_post(String, 18 characters)edit_theme_optionsedit_posts(String, 8 characters)edit_cssedit_others_posts(String, 8 characters)edit_csspublish_posts(String, 18 characters)edit_theme_optionsread_private_posts(String, 4 characters)readdelete_posts(String, 18 characters)edit_theme_optionsdelete_published_posts(String, 18 characters)edit_theme_optionsdelete_private_posts(String, 18 characters)edit_theme_optionsdelete_others_posts(String, 18 characters)edit_theme_optionsedit_published_posts(String, 8 characters)edit_csscreate_posts(String, 8 characters)edit_cssNo Methods
rewrite(Boolean)FALSEshow_in_rest(Boolean)FALSErest_base(Boolean)FALSErest_controller_class(Boolean)FALSErest_controller(NULL)public __construct($post_type, $args = array ( ))
/**
 * Constructor.
 *
 * Will populate object properties from the provided arguments and assign other
 * default properties based on that information.
 *
 * @since 4.6.0
 *
 * @see register_post_type()
 *
 * @param string       $post_type Post type key.
 * @param array|string $args      Optional. Array or string of arguments for registering a post type.
 *                                Default empty array.
 */
public set_props($args)
/**
 * Sets post type properties.
 *
 * @since 4.6.0
 *
 * @param array|string $args Array or string of arguments for registering a post type.
 */
public add_supports()
/**
 * Sets the features support for the post type.
 *
 * @since 4.6.0
 */
public add_rewrite_rules()
/**
 * Adds the necessary rewrite rules for the post type.
 *
 * @since 4.6.0
 *
 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
 * @global WP         $wp         Current WordPress environment instance.
 */
public register_meta_boxes()
/**
 * Registers the post type meta box if a custom callback was specified.
 *
 * @since 4.6.0
 */
public add_hooks()
/**
 * Adds the future post hook action for the post type.
 *
 * @since 4.6.0
 */
public register_taxonomies()
/**
 * Registers the taxonomies for the post type.
 *
 * @since 4.6.0
 */
public remove_supports()
/**
 * Removes the features support for the post type.
 *
 * @since 4.6.0
 *
 * @global array $_wp_post_type_features Post type features.
 */
public remove_rewrite_rules()
/**
 * Removes any rewrite rules, permastructs, and rules for the post type.
 *
 * @since 4.6.0
 *
 * @global WP_Rewrite $wp_rewrite          WordPress rewrite component.
 * @global WP         $wp                  Current WordPress environment instance.
 * @global array      $post_type_meta_caps Used to remove meta capabilities.
 */
public unregister_meta_boxes()
/**
 * Unregisters the post type meta box if a custom callback was specified.
 *
 * @since 4.6.0
 */
public unregister_taxonomies()
/**
 * Removes the post type from all taxonomies.
 *
 * @since 4.6.0
 */
public remove_hooks()
/**
 * Removes the future post hook action for the post type.
 *
 * @since 4.6.0
 */
public get_rest_controller()
/**
 * Gets the REST API controller for this post type.
 *
 * Will only instantiate the controller class once per request.
 *
 * @since 5.3.0
 *
 * @return WP_REST_Controller|null The controller instance, or null if the post type
 *                                 is set not to show in rest.
 */
customize_changeset
· · · · ·(Object, WP_Post_Type, 30 properties)
name(String, 19 characters)customize_changesetlabel(String, 10 characters)Changesetslabels(Object, stdClass, 31 properties)
name(String, 10 characters)Changesetssingular_name(String, 9 characters)Changesetadd_new(String, 7 characters)Add Newadd_new_item(String, 17 characters)Add New Changesetedit_item(String, 14 characters)Edit Changesetnew_item(String, 13 characters)New Changesetview_item(String, 14 characters)View Changesetview_items(String, 10 characters)View Postssearch_items(String, 17 characters)Search Changesetsnot_found(String, 20 characters)No changesets found.not_found_in_trash(String, 29 characters)No changesets found in Trash.parent_item_colon(NULL)all_items(String, 14 characters)All Changesetsarchives(String, 14 characters)All Changesetsattributes(String, 15 characters)Post Attributesinsert_into_item(String, 16 characters)Insert into postuploaded_to_this_item(String, 21 characters)Uploaded to this postfeatured_image(String, 14 characters)Featured Imageset_featured_image(String, 18 characters)Set featured imageremove_featured_image(String, 21 characters)Remove featured imageuse_featured_image(String, 21 characters)Use as featured imagefilter_items_list(String, 17 characters)Filter posts listitems_list_navigation(String, 21 characters)Posts list navigationitems_list(String, 10 characters)Posts listitem_published(String, 15 characters)Post published.item_published_privately(String, 25 characters)Post published privately.item_reverted_to_draft(String, 23 characters)Post reverted to draft.item_scheduled(String, 15 characters)Post scheduled.item_updated(String, 13 characters)Post updated.menu_name(String, 10 characters)Changesetsname_admin_bar(String, 9 characters)ChangesetNo Methods
description(String, 0 characters)public(Boolean)FALSEhierarchical(Boolean)FALSEexclude_from_search(Boolean)TRUEpublicly_queryable(Boolean)FALSEshow_ui(Boolean)FALSEshow_in_menu(Boolean)FALSEshow_in_nav_menus(Boolean)FALSEshow_in_admin_bar(Boolean)FALSEmenu_position(NULL)menu_icon(NULL)capability_type(String, 19 characters)customize_changesetmap_meta_cap(Boolean)TRUEregister_meta_box_cb(NULL)taxonomies(Array, 0 elements)
Empty Array
has_archive(Boolean)FALSEquery_var(Boolean)FALSEcan_export(Boolean)FALSEdelete_with_user(Boolean)FALSE_builtin(Boolean)TRUE_edit_link(String, 0 characters)cap(Object, stdClass, 15 properties)
edit_post(String, 9 characters)customizeread_post(String, 9 characters)customizedelete_post(String, 9 characters)customizeedit_posts(String, 9 characters)customizeedit_others_posts(String, 9 characters)customizepublish_posts(String, 9 characters)customizeread_private_posts(String, 9 characters)customizeread(String, 4 characters)readdelete_posts(String, 9 characters)customizedelete_private_posts(String, 9 characters)customizedelete_published_posts(String, 9 characters)customizedelete_others_posts(String, 9 characters)customizeedit_private_posts(String, 9 characters)customizeedit_published_posts(String, 12 characters)do_not_allowcreate_posts(String, 9 characters)customizeNo Methods
rewrite(Boolean)FALSEshow_in_rest(Boolean)FALSErest_base(Boolean)FALSErest_controller_class(Boolean)FALSErest_controller(NULL)public __construct($post_type, $args = array ( ))
/**
 * Constructor.
 *
 * Will populate object properties from the provided arguments and assign other
 * default properties based on that information.
 *
 * @since 4.6.0
 *
 * @see register_post_type()
 *
 * @param string       $post_type Post type key.
 * @param array|string $args      Optional. Array or string of arguments for registering a post type.
 *                                Default empty array.
 */
public set_props($args)
/**
 * Sets post type properties.
 *
 * @since 4.6.0
 *
 * @param array|string $args Array or string of arguments for registering a post type.
 */
public add_supports()
/**
 * Sets the features support for the post type.
 *
 * @since 4.6.0
 */
public add_rewrite_rules()
/**
 * Adds the necessary rewrite rules for the post type.
 *
 * @since 4.6.0
 *
 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
 * @global WP         $wp         Current WordPress environment instance.
 */
public register_meta_boxes()
/**
 * Registers the post type meta box if a custom callback was specified.
 *
 * @since 4.6.0
 */
public add_hooks()
/**
 * Adds the future post hook action for the post type.
 *
 * @since 4.6.0
 */
public register_taxonomies()
/**
 * Registers the taxonomies for the post type.
 *
 * @since 4.6.0
 */
public remove_supports()
/**
 * Removes the features support for the post type.
 *
 * @since 4.6.0
 *
 * @global array $_wp_post_type_features Post type features.
 */
public remove_rewrite_rules()
/**
 * Removes any rewrite rules, permastructs, and rules for the post type.
 *
 * @since 4.6.0
 *
 * @global WP_Rewrite $wp_rewrite          WordPress rewrite component.
 * @global WP         $wp                  Current WordPress environment instance.
 * @global array      $post_type_meta_caps Used to remove meta capabilities.
 */
public unregister_meta_boxes()
/**
 * Unregisters the post type meta box if a custom callback was specified.
 *
 * @since 4.6.0
 */
public unregister_taxonomies()
/**
 * Removes the post type from all taxonomies.
 *
 * @since 4.6.0
 */
public remove_hooks()
/**
 * Removes the future post hook action for the post type.
 *
 * @since 4.6.0
 */
public get_rest_controller()
/**
 * Gets the REST API controller for this post type.
 *
 * Will only instantiate the controller class once per request.
 *
 * @since 5.3.0
 *
 * @return WP_REST_Controller|null The controller instance, or null if the post type
 *                                 is set not to show in rest.
 */
oembed_cache
· · · · ·(Object, WP_Post_Type, 31 properties)
name(String, 12 characters)oembed_cachelabel(String, 16 characters)oEmbed Responseslabels(Object, stdClass, 31 properties)
name(String, 16 characters)oEmbed Responsessingular_name(String, 15 characters)oEmbed Responseadd_new(String, 7 characters)Add Newadd_new_item(String, 12 characters)Add New Postedit_item(String, 9 characters)Edit Postnew_item(String, 8 characters)New Postview_item(String, 9 characters)View Postview_items(String, 10 characters)View Postssearch_items(String, 12 characters)Search Postsnot_found(String, 15 characters)No posts found.not_found_in_trash(String, 24 characters)No posts found in Trash.parent_item_colon(NULL)all_items(String, 16 characters)oEmbed Responsesarchives(String, 16 characters)oEmbed Responsesattributes(String, 15 characters)Post Attributesinsert_into_item(String, 16 characters)Insert into postuploaded_to_this_item(String, 21 characters)Uploaded to this postfeatured_image(String, 14 characters)Featured Imageset_featured_image(String, 18 characters)Set featured imageremove_featured_image(String, 21 characters)Remove featured imageuse_featured_image(String, 21 characters)Use as featured imagefilter_items_list(String, 17 characters)Filter posts listitems_list_navigation(String, 21 characters)Posts list navigationitems_list(String, 10 characters)Posts listitem_published(String, 15 characters)Post published.item_published_privately(String, 25 characters)Post published privately.item_reverted_to_draft(String, 23 characters)Post reverted to draft.item_scheduled(String, 15 characters)Post scheduled.item_updated(String, 13 characters)Post updated.menu_name(String, 16 characters)oEmbed Responsesname_admin_bar(String, 15 characters)oEmbed ResponseNo Methods
description(String, 0 characters)public(Boolean)FALSEhierarchical(Boolean)FALSEexclude_from_search(Boolean)TRUEpublicly_queryable(Boolean)FALSEshow_ui(Boolean)FALSEshow_in_menu(Boolean)FALSEshow_in_nav_menus(Boolean)FALSEshow_in_admin_bar(Boolean)FALSEmenu_position(NULL)menu_icon(NULL)capability_type(String, 4 characters)postmap_meta_cap(Boolean)TRUEregister_meta_box_cb(NULL)taxonomies(Array, 0 elements)
Empty Array
has_archive(Boolean)FALSEquery_var(Boolean)FALSEcan_export(Boolean)FALSEdelete_with_user(Boolean)FALSE_builtin(Boolean)TRUE_edit_link(String, 0 characters)cap(Object, stdClass, 15 properties)
edit_post(String, 9 characters)edit_postread_post(String, 9 characters)read_postdelete_post(String, 11 characters)delete_postedit_posts(String, 10 characters)edit_postsedit_others_posts(String, 17 characters)edit_others_postspublish_posts(String, 13 characters)publish_postsread_private_posts(String, 18 characters)read_private_postsread(String, 4 characters)readdelete_posts(String, 12 characters)delete_postsdelete_private_posts(String, 20 characters)delete_private_postsdelete_published_posts(String, 22 characters)delete_published_postsdelete_others_posts(String, 19 characters)delete_others_postsedit_private_posts(String, 18 characters)edit_private_postsedit_published_posts(String, 20 characters)edit_published_postscreate_posts(String, 10 characters)edit_postsNo Methods
rewrite(Boolean)FALSEsupports(Array, 0 elements)
Empty Array
show_in_rest(Boolean)FALSErest_base(Boolean)FALSErest_controller_class(Boolean)FALSErest_controller(NULL)public __construct($post_type, $args = array ( ))
/**
 * Constructor.
 *
 * Will populate object properties from the provided arguments and assign other
 * default properties based on that information.
 *
 * @since 4.6.0
 *
 * @see register_post_type()
 *
 * @param string       $post_type Post type key.
 * @param array|string $args      Optional. Array or string of arguments for registering a post type.
 *                                Default empty array.
 */
public set_props($args)
/**
 * Sets post type properties.
 *
 * @since 4.6.0
 *
 * @param array|string $args Array or string of arguments for registering a post type.
 */
public add_supports()
/**
 * Sets the features support for the post type.
 *
 * @since 4.6.0
 */
public add_rewrite_rules()
/**
 * Adds the necessary rewrite rules for the post type.
 *
 * @since 4.6.0
 *
 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
 * @global WP         $wp         Current WordPress environment instance.
 */
public register_meta_boxes()
/**
 * Registers the post type meta box if a custom callback was specified.
 *
 * @since 4.6.0
 */
public add_hooks()
/**
 * Adds the future post hook action for the post type.
 *
 * @since 4.6.0
 */
public register_taxonomies()
/**
 * Registers the taxonomies for the post type.
 *
 * @since 4.6.0
 */
public remove_supports()
/**
 * Removes the features support for the post type.
 *
 * @since 4.6.0
 *
 * @global array $_wp_post_type_features Post type features.
 */
public remove_rewrite_rules()
/**
 * Removes any rewrite rules, permastructs, and rules for the post type.
 *
 * @since 4.6.0
 *
 * @global WP_Rewrite $wp_rewrite          WordPress rewrite component.
 * @global WP         $wp                  Current WordPress environment instance.
 * @global array      $post_type_meta_caps Used to remove meta capabilities.
 */
public unregister_meta_boxes()
/**
 * Unregisters the post type meta box if a custom callback was specified.
 *
 * @since 4.6.0
 */
public unregister_taxonomies()
/**
 * Removes the post type from all taxonomies.
 *
 * @since 4.6.0
 */
public remove_hooks()
/**
 * Removes the future post hook action for the post type.
 *
 * @since 4.6.0
 */
public get_rest_controller()
/**
 * Gets the REST API controller for this post type.
 *
 * Will only instantiate the controller class once per request.
 *
 * @since 5.3.0
 *
 * @return WP_REST_Controller|null The controller instance, or null if the post type
 *                                 is set not to show in rest.
 */
user_request
· · · · ·(Object, WP_Post_Type, 31 properties)
name(String, 12 characters)user_requestlabel(String, 13 characters)User Requestslabels(Object, stdClass, 31 properties)
name(String, 13 characters)User Requestssingular_name(String, 12 characters)User Requestadd_new(String, 7 characters)Add Newadd_new_item(String, 12 characters)Add New Postedit_item(String, 9 characters)Edit Postnew_item(String, 8 characters)New Postview_item(String, 9 characters)View Postview_items(String, 10 characters)View Postssearch_items(String, 12 characters)Search Postsnot_found(String, 15 characters)No posts found.not_found_in_trash(String, 24 characters)No posts found in Trash.parent_item_colon(NULL)all_items(String, 13 characters)User Requestsarchives(String, 13 characters)User Requestsattributes(String, 15 characters)Post Attributesinsert_into_item(String, 16 characters)Insert into postuploaded_to_this_item(String, 21 characters)Uploaded to this postfeatured_image(String, 14 characters)Featured Imageset_featured_image(String, 18 characters)Set featured imageremove_featured_image(String, 21 characters)Remove featured imageuse_featured_image(String, 21 characters)Use as featured imagefilter_items_list(String, 17 characters)Filter posts listitems_list_navigation(String, 21 characters)Posts list navigationitems_list(String, 10 characters)Posts listitem_published(String, 15 characters)Post published.item_published_privately(String, 25 characters)Post published privately.item_reverted_to_draft(String, 23 characters)Post reverted to draft.item_scheduled(String, 15 characters)Post scheduled.item_updated(String, 13 characters)Post updated.menu_name(String, 13 characters)User Requestsname_admin_bar(String, 12 characters)User RequestNo Methods
description(String, 0 characters)public(Boolean)FALSEhierarchical(Boolean)FALSEexclude_from_search(Boolean)TRUEpublicly_queryable(Boolean)FALSEshow_ui(Boolean)FALSEshow_in_menu(Boolean)FALSEshow_in_nav_menus(Boolean)FALSEshow_in_admin_bar(Boolean)FALSEmenu_position(NULL)menu_icon(NULL)capability_type(String, 4 characters)postmap_meta_cap(Boolean)TRUEregister_meta_box_cb(NULL)taxonomies(Array, 0 elements)
Empty Array
has_archive(Boolean)FALSEquery_var(Boolean)FALSEcan_export(Boolean)FALSEdelete_with_user(Boolean)FALSE_builtin(Boolean)TRUE_edit_link(String, 0 characters)cap(Object, stdClass, 15 properties)
edit_post(String, 9 characters)edit_postread_post(String, 9 characters)read_postdelete_post(String, 11 characters)delete_postedit_posts(String, 10 characters)edit_postsedit_others_posts(String, 17 characters)edit_others_postspublish_posts(String, 13 characters)publish_postsread_private_posts(String, 18 characters)read_private_postsread(String, 4 characters)readdelete_posts(String, 12 characters)delete_postsdelete_private_posts(String, 20 characters)delete_private_postsdelete_published_posts(String, 22 characters)delete_published_postsdelete_others_posts(String, 19 characters)delete_others_postsedit_private_posts(String, 18 characters)edit_private_postsedit_published_posts(String, 20 characters)edit_published_postscreate_posts(String, 10 characters)edit_postsNo Methods
rewrite(Boolean)FALSEsupports(Array, 0 elements)
Empty Array
show_in_rest(Boolean)FALSErest_base(Boolean)FALSErest_controller_class(Boolean)FALSErest_controller(NULL)public __construct($post_type, $args = array ( ))
/**
 * Constructor.
 *
 * Will populate object properties from the provided arguments and assign other
 * default properties based on that information.
 *
 * @since 4.6.0
 *
 * @see register_post_type()
 *
 * @param string       $post_type Post type key.
 * @param array|string $args      Optional. Array or string of arguments for registering a post type.
 *                                Default empty array.
 */
public set_props($args)
/**
 * Sets post type properties.
 *
 * @since 4.6.0
 *
 * @param array|string $args Array or string of arguments for registering a post type.
 */
public add_supports()
/**
 * Sets the features support for the post type.
 *
 * @since 4.6.0
 */
public add_rewrite_rules()
/**
 * Adds the necessary rewrite rules for the post type.
 *
 * @since 4.6.0
 *
 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
 * @global WP         $wp         Current WordPress environment instance.
 */
public register_meta_boxes()
/**
 * Registers the post type meta box if a custom callback was specified.
 *
 * @since 4.6.0
 */
public add_hooks()
/**
 * Adds the future post hook action for the post type.
 *
 * @since 4.6.0
 */
public register_taxonomies()
/**
 * Registers the taxonomies for the post type.
 *
 * @since 4.6.0
 */
public remove_supports()
/**
 * Removes the features support for the post type.
 *
 * @since 4.6.0
 *
 * @global array $_wp_post_type_features Post type features.
 */
public remove_rewrite_rules()
/**
 * Removes any rewrite rules, permastructs, and rules for the post type.
 *
 * @since 4.6.0
 *
 * @global WP_Rewrite $wp_rewrite          WordPress rewrite component.
 * @global WP         $wp                  Current WordPress environment instance.
 * @global array      $post_type_meta_caps Used to remove meta capabilities.
 */
public unregister_meta_boxes()
/**
 * Unregisters the post type meta box if a custom callback was specified.
 *
 * @since 4.6.0
 */
public unregister_taxonomies()
/**
 * Removes the post type from all taxonomies.
 *
 * @since 4.6.0
 */
public remove_hooks()
/**
 * Removes the future post hook action for the post type.
 *
 * @since 4.6.0
 */
public get_rest_controller()
/**
 * Gets the REST API controller for this post type.
 *
 * Will only instantiate the controller class once per request.
 *
 * @since 5.3.0
 *
 * @return WP_REST_Controller|null The controller instance, or null if the post type
 *                                 is set not to show in rest.
 */
wp_block
· · · · ·(Object, WP_Post_Type, 30 properties)
name(String, 8 characters)wp_blocklabel(String, 6 characters)Blockslabels(Object, stdClass, 31 properties)
name(String, 6 characters)Blockssingular_name(String, 5 characters)Blockadd_new(String, 7 characters)Add Newadd_new_item(String, 13 characters)Add New Blockedit_item(String, 10 characters)Edit Blocknew_item(String, 9 characters)New Blockview_item(String, 10 characters)View Blockview_items(String, 10 characters)View Postssearch_items(String, 13 characters)Search Blocksnot_found(String, 16 characters)No blocks found.not_found_in_trash(String, 25 characters)No blocks found in Trash.parent_item_colon(NULL)all_items(String, 10 characters)All Blocksarchives(String, 10 characters)All Blocksattributes(String, 15 characters)Post Attributesinsert_into_item(String, 16 characters)Insert into postuploaded_to_this_item(String, 21 characters)Uploaded to this postfeatured_image(String, 14 characters)Featured Imageset_featured_image(String, 18 characters)Set featured imageremove_featured_image(String, 21 characters)Remove featured imageuse_featured_image(String, 21 characters)Use as featured imagefilter_items_list(String, 18 characters)Filter blocks listitems_list_navigation(String, 22 characters)Blocks list navigationitems_list(String, 11 characters)Blocks listitem_published(String, 16 characters)Block published.item_published_privately(String, 26 characters)Block published privately.item_reverted_to_draft(String, 24 characters)Block reverted to draft.item_scheduled(String, 16 characters)Block scheduled.item_updated(String, 14 characters)Block updated.menu_name(String, 6 characters)Blocksname_admin_bar(String, 5 characters)BlockNo Methods
description(String, 0 characters)public(Boolean)FALSEhierarchical(Boolean)FALSEexclude_from_search(Boolean)TRUEpublicly_queryable(Boolean)FALSEshow_ui(Boolean)TRUEshow_in_menu(Boolean)FALSEshow_in_nav_menus(Boolean)FALSEshow_in_admin_bar(Boolean)FALSEmenu_position(NULL)menu_icon(NULL)capability_type(String, 5 characters)blockmap_meta_cap(Boolean)TRUEregister_meta_box_cb(NULL)taxonomies(Array, 0 elements)
Empty Array
has_archive(Boolean)FALSEquery_var(String, 8 characters)wp_blockcan_export(Boolean)TRUEdelete_with_user(NULL)_builtin(Boolean)TRUE_edit_link(String, 16 characters)post.php?post=%dcap(Object, stdClass, 15 properties)
edit_post(String, 10 characters)edit_blockread_post(String, 10 characters)read_blockdelete_post(String, 12 characters)delete_blockedit_posts(String, 10 characters)edit_postsedit_others_posts(String, 17 characters)edit_others_postspublish_posts(String, 14 characters)publish_blocksread_private_posts(String, 19 characters)read_private_blocksread(String, 10 characters)edit_postsdelete_posts(String, 13 characters)delete_blocksdelete_private_posts(String, 21 characters)delete_private_blocksdelete_published_posts(String, 22 characters)delete_published_postsdelete_others_posts(String, 19 characters)delete_others_postsedit_private_posts(String, 19 characters)edit_private_blocksedit_published_posts(String, 20 characters)edit_published_postscreate_posts(String, 13 characters)publish_postsNo Methods
rewrite(Boolean)FALSEshow_in_rest(Boolean)TRUErest_base(String, 6 characters)blocksrest_controller_class(String, 25 characters)WP_REST_Blocks_Controllerrest_controller(NULL)public __construct($post_type, $args = array ( ))
/**
 * Constructor.
 *
 * Will populate object properties from the provided arguments and assign other
 * default properties based on that information.
 *
 * @since 4.6.0
 *
 * @see register_post_type()
 *
 * @param string       $post_type Post type key.
 * @param array|string $args      Optional. Array or string of arguments for registering a post type.
 *                                Default empty array.
 */
public set_props($args)
/**
 * Sets post type properties.
 *
 * @since 4.6.0
 *
 * @param array|string $args Array or string of arguments for registering a post type.
 */
public add_supports()
/**
 * Sets the features support for the post type.
 *
 * @since 4.6.0
 */
public add_rewrite_rules()
/**
 * Adds the necessary rewrite rules for the post type.
 *
 * @since 4.6.0
 *
 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
 * @global WP         $wp         Current WordPress environment instance.
 */
public register_meta_boxes()
/**
 * Registers the post type meta box if a custom callback was specified.
 *
 * @since 4.6.0
 */
public add_hooks()
/**
 * Adds the future post hook action for the post type.
 *
 * @since 4.6.0
 */
public register_taxonomies()
/**
 * Registers the taxonomies for the post type.
 *
 * @since 4.6.0
 */
public remove_supports()
/**
 * Removes the features support for the post type.
 *
 * @since 4.6.0
 *
 * @global array $_wp_post_type_features Post type features.
 */
public remove_rewrite_rules()
/**
 * Removes any rewrite rules, permastructs, and rules for the post type.
 *
 * @since 4.6.0
 *
 * @global WP_Rewrite $wp_rewrite          WordPress rewrite component.
 * @global WP         $wp                  Current WordPress environment instance.
 * @global array      $post_type_meta_caps Used to remove meta capabilities.
 */
public unregister_meta_boxes()
/**
 * Unregisters the post type meta box if a custom callback was specified.
 *
 * @since 4.6.0
 */
public unregister_taxonomies()
/**
 * Removes the post type from all taxonomies.
 *
 * @since 4.6.0
 */
public remove_hooks()
/**
 * Removes the future post hook action for the post type.
 *
 * @since 4.6.0
 */
public get_rest_controller()
/**
 * Gets the REST API controller for this post type.
 *
 * Will only instantiate the controller class once per request.
 *
 * @since 5.3.0
 *
 * @return WP_REST_Controller|null The controller instance, or null if the post type
 *                                 is set not to show in rest.
 */
forum
· · · · ·(Object, WP_Post_Type, 31 properties)
name(String, 5 characters)forumlabel(String, 6 characters)Forumslabels(Object, stdClass, 33 properties)
name(String, 6 characters)Forumssingular_name(String, 5 characters)Forumadd_new(String, 7 characters)Add Newadd_new_item(String, 16 characters)Create New Forumedit_item(String, 10 characters)Edit Forumnew_item(String, 9 characters)New Forumview_item(String, 10 characters)View Forumview_items(String, 11 characters)View Forumssearch_items(String, 13 characters)Search Forumsnot_found(String, 15 characters)No forums foundnot_found_in_trash(String, 24 characters)No forums found in Trashparent_item_colon(String, 13 characters)Parent Forum:all_items(String, 10 characters)All Forumsarchives(String, 6 characters)Forumsattributes(String, 16 characters)Forum Attributesinsert_into_item(String, 17 characters)Insert into forumuploaded_to_this_item(String, 22 characters)Uploaded to this forumfeatured_image(String, 11 characters)Forum Imageset_featured_image(String, 15 characters)Set forum imageremove_featured_image(String, 18 characters)Remove forum imageuse_featured_image(String, 18 characters)Use as forum imagefilter_items_list(String, 18 characters)Filter forums listitems_list_navigation(String, 22 characters)Forums list navigationitems_list(String, 11 characters)Forums listitem_published(String, 16 characters)Forum published.item_published_privately(String, 26 characters)Forum published privately.item_reverted_to_draft(String, 24 characters)Forum reverted to draft.item_scheduled(String, 16 characters)Forum scheduled.item_updated(String, 14 characters)Forum updated.menu_name(String, 6 characters)Forumsedit(String, 4 characters)Editview(String, 10 characters)View Forumname_admin_bar(String, 5 characters)ForumNo Methods
description(String, 14 characters)bbPress Forumspublic(Boolean)TRUEhierarchical(Boolean)TRUEexclude_from_search(Boolean)TRUEpublicly_queryable(Boolean)TRUEshow_ui(Boolean)FALSEshow_in_menu(Boolean)FALSEshow_in_nav_menus(Boolean)TRUEshow_in_admin_bar(Boolean)FALSEmenu_position(Integer)555555menu_icon(String, 0 characters)capability_type(String, 5 characters)forummap_meta_cap(Boolean)FALSEregister_meta_box_cb(NULL)taxonomies(Array, 0 elements)
Empty Array
has_archive(String, 6 characters)forumsquery_var(String, 5 characters)forumcan_export(Boolean)TRUEdelete_with_user(NULL)_builtin(Boolean)FALSE_edit_link(String, 0 characters)cap(Object, stdClass, 11 properties)
edit_post(String, 10 characters)edit_forumread_post(String, 10 characters)read_forumdelete_post(String, 12 characters)delete_forumedit_posts(String, 11 characters)edit_forumsedit_others_posts(String, 18 characters)edit_others_forumspublish_posts(String, 14 characters)publish_forumsread_private_posts(String, 19 characters)read_private_forumsread_hidden_posts(String, 18 characters)read_hidden_forumsdelete_posts(String, 13 characters)delete_forumsdelete_others_posts(String, 20 characters)delete_others_forumscreate_posts(String, 11 characters)edit_forumsNo Methods
rewrite(Array, 5 elements)
slug(String, 12 characters)forums/forumwith_front(Boolean)FALSEpages(Boolean)TRUEfeeds(Boolean)TRUEep_mask(Integer)1
show_in_rest(Boolean)FALSErest_base(Boolean)FALSErest_controller_class(Boolean)FALSErest_controller(NULL)source(String, 7 characters)bbpresspublic __construct($post_type, $args = array ( ))
/**
 * Constructor.
 *
 * Will populate object properties from the provided arguments and assign other
 * default properties based on that information.
 *
 * @since 4.6.0
 *
 * @see register_post_type()
 *
 * @param string       $post_type Post type key.
 * @param array|string $args      Optional. Array or string of arguments for registering a post type.
 *                                Default empty array.
 */
public set_props($args)
/**
 * Sets post type properties.
 *
 * @since 4.6.0
 *
 * @param array|string $args Array or string of arguments for registering a post type.
 */
public add_supports()
/**
 * Sets the features support for the post type.
 *
 * @since 4.6.0
 */
public add_rewrite_rules()
/**
 * Adds the necessary rewrite rules for the post type.
 *
 * @since 4.6.0
 *
 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
 * @global WP         $wp         Current WordPress environment instance.
 */
public register_meta_boxes()
/**
 * Registers the post type meta box if a custom callback was specified.
 *
 * @since 4.6.0
 */
public add_hooks()
/**
 * Adds the future post hook action for the post type.
 *
 * @since 4.6.0
 */
public register_taxonomies()
/**
 * Registers the taxonomies for the post type.
 *
 * @since 4.6.0
 */
public remove_supports()
/**
 * Removes the features support for the post type.
 *
 * @since 4.6.0
 *
 * @global array $_wp_post_type_features Post type features.
 */
public remove_rewrite_rules()
/**
 * Removes any rewrite rules, permastructs, and rules for the post type.
 *
 * @since 4.6.0
 *
 * @global WP_Rewrite $wp_rewrite          WordPress rewrite component.
 * @global WP         $wp                  Current WordPress environment instance.
 * @global array      $post_type_meta_caps Used to remove meta capabilities.
 */
public unregister_meta_boxes()
/**
 * Unregisters the post type meta box if a custom callback was specified.
 *
 * @since 4.6.0
 */
public unregister_taxonomies()
/**
 * Removes the post type from all taxonomies.
 *
 * @since 4.6.0
 */
public remove_hooks()
/**
 * Removes the future post hook action for the post type.
 *
 * @since 4.6.0
 */
public get_rest_controller()
/**
 * Gets the REST API controller for this post type.
 *
 * Will only instantiate the controller class once per request.
 *
 * @since 5.3.0
 *
 * @return WP_REST_Controller|null The controller instance, or null if the post type
 *                                 is set not to show in rest.
 */
topic
· · · · ·(Object, WP_Post_Type, 31 properties)
name(String, 5 characters)topiclabel(String, 6 characters)Topicslabels(Object, stdClass, 33 properties)
name(String, 6 characters)Topicssingular_name(String, 5 characters)Topicadd_new(String, 7 characters)Add Newadd_new_item(String, 16 characters)Create New Topicedit_item(String, 10 characters)Edit Topicnew_item(String, 9 characters)New Topicview_item(String, 10 characters)View Topicview_items(String, 11 characters)View Topicssearch_items(String, 13 characters)Search Topicsnot_found(String, 15 characters)No topics foundnot_found_in_trash(String, 24 characters)No topics found in Trashparent_item_colon(String, 6 characters)Forum:all_items(String, 10 characters)All Topicsarchives(String, 12 characters)Forum Topicsattributes(String, 16 characters)Topic Attributesinsert_into_item(String, 17 characters)Insert into topicuploaded_to_this_item(String, 22 characters)Uploaded to this topicfeatured_image(String, 11 characters)Topic Imageset_featured_image(String, 15 characters)Set topic imageremove_featured_image(String, 18 characters)Remove topic imageuse_featured_image(String, 18 characters)Use as topic imagefilter_items_list(String, 18 characters)Filter topics listitems_list_navigation(String, 22 characters)Topics list navigationitems_list(String, 11 characters)Topics listitem_published(String, 16 characters)Topic published.item_published_privately(String, 26 characters)Topic published privately.item_reverted_to_draft(String, 24 characters)Topic reverted to draft.item_scheduled(String, 16 characters)Topic scheduled.item_updated(String, 14 characters)Topic updated.menu_name(String, 6 characters)Topicsedit(String, 4 characters)Editview(String, 10 characters)View Topicname_admin_bar(String, 5 characters)TopicNo Methods
description(String, 14 characters)bbPress Topicspublic(Boolean)TRUEhierarchical(Boolean)FALSEexclude_from_search(Boolean)TRUEpublicly_queryable(Boolean)TRUEshow_ui(Boolean)FALSEshow_in_menu(Boolean)FALSEshow_in_nav_menus(Boolean)FALSEshow_in_admin_bar(Boolean)FALSEmenu_position(Integer)555555menu_icon(String, 0 characters)capability_type(String, 5 characters)topicmap_meta_cap(Boolean)FALSEregister_meta_box_cb(NULL)taxonomies(Array, 0 elements)
Empty Array
has_archive(String, 6 characters)topicsquery_var(String, 5 characters)topiccan_export(Boolean)TRUEdelete_with_user(NULL)_builtin(Boolean)FALSE_edit_link(String, 0 characters)cap(Object, stdClass, 11 properties)
edit_post(String, 10 characters)edit_topicread_post(String, 10 characters)read_topicdelete_post(String, 12 characters)delete_topicedit_posts(String, 11 characters)edit_topicsedit_others_posts(String, 18 characters)edit_others_topicspublish_posts(String, 14 characters)publish_topicsread_private_posts(String, 19 characters)read_private_topicsread_hidden_posts(String, 18 characters)read_hidden_topicsdelete_posts(String, 13 characters)delete_topicsdelete_others_posts(String, 20 characters)delete_others_topicscreate_posts(String, 11 characters)edit_topicsNo Methods
rewrite(Array, 5 elements)
slug(String, 12 characters)forums/topicwith_front(Boolean)FALSEpages(Boolean)TRUEfeeds(Boolean)TRUEep_mask(Integer)1
show_in_rest(Boolean)FALSErest_base(Boolean)FALSErest_controller_class(Boolean)FALSErest_controller(NULL)source(String, 7 characters)bbpresspublic __construct($post_type, $args = array ( ))
/**
 * Constructor.
 *
 * Will populate object properties from the provided arguments and assign other
 * default properties based on that information.
 *
 * @since 4.6.0
 *
 * @see register_post_type()
 *
 * @param string       $post_type Post type key.
 * @param array|string $args      Optional. Array or string of arguments for registering a post type.
 *                                Default empty array.
 */
public set_props($args)
/**
 * Sets post type properties.
 *
 * @since 4.6.0
 *
 * @param array|string $args Array or string of arguments for registering a post type.
 */
public add_supports()
/**
 * Sets the features support for the post type.
 *
 * @since 4.6.0
 */
public add_rewrite_rules()
/**
 * Adds the necessary rewrite rules for the post type.
 *
 * @since 4.6.0
 *
 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
 * @global WP         $wp         Current WordPress environment instance.
 */
public register_meta_boxes()
/**
 * Registers the post type meta box if a custom callback was specified.
 *
 * @since 4.6.0
 */
public add_hooks()
/**
 * Adds the future post hook action for the post type.
 *
 * @since 4.6.0
 */
public register_taxonomies()
/**
 * Registers the taxonomies for the post type.
 *
 * @since 4.6.0
 */
public remove_supports()
/**
 * Removes the features support for the post type.
 *
 * @since 4.6.0
 *
 * @global array $_wp_post_type_features Post type features.
 */
public remove_rewrite_rules()
/**
 * Removes any rewrite rules, permastructs, and rules for the post type.
 *
 * @since 4.6.0
 *
 * @global WP_Rewrite $wp_rewrite          WordPress rewrite component.
 * @global WP         $wp                  Current WordPress environment instance.
 * @global array      $post_type_meta_caps Used to remove meta capabilities.
 */
public unregister_meta_boxes()
/**
 * Unregisters the post type meta box if a custom callback was specified.
 *
 * @since 4.6.0
 */
public unregister_taxonomies()
/**
 * Removes the post type from all taxonomies.
 *
 * @since 4.6.0
 */
public remove_hooks()
/**
 * Removes the future post hook action for the post type.
 *
 * @since 4.6.0
 */
public get_rest_controller()
/**
 * Gets the REST API controller for this post type.
 *
 * Will only instantiate the controller class once per request.
 *
 * @since 5.3.0
 *
 * @return WP_REST_Controller|null The controller instance, or null if the post type
 *                                 is set not to show in rest.
 */
reply
· · · · ·(Object, WP_Post_Type, 31 properties)
name(String, 5 characters)replylabel(String, 7 characters)Replieslabels(Object, stdClass, 33 properties)
name(String, 7 characters)Repliessingular_name(String, 5 characters)Replyadd_new(String, 7 characters)Add Newadd_new_item(String, 16 characters)Create New Replyedit_item(String, 10 characters)Edit Replynew_item(String, 9 characters)New Replyview_item(String, 10 characters)View Replyview_items(String, 12 characters)View Repliessearch_items(String, 14 characters)Search Repliesnot_found(String, 16 characters)No replies foundnot_found_in_trash(String, 25 characters)No replies found in Trashparent_item_colon(String, 13 characters)Parent Topic:all_items(String, 11 characters)All Repliesarchives(String, 13 characters)Forum Repliesattributes(String, 16 characters)Reply Attributesinsert_into_item(String, 17 characters)Insert into replyuploaded_to_this_item(String, 22 characters)Uploaded to this replyfeatured_image(String, 11 characters)Reply Imageset_featured_image(String, 15 characters)Set reply imageremove_featured_image(String, 18 characters)Remove reply imageuse_featured_image(String, 18 characters)Use as reply imagefilter_items_list(String, 19 characters)Filter replies listitems_list_navigation(String, 23 characters)Replies list navigationitems_list(String, 12 characters)Replies listitem_published(String, 16 characters)Reply published.item_published_privately(String, 26 characters)Reply published privately.item_reverted_to_draft(String, 24 characters)Reply reverted to draft.item_scheduled(String, 16 characters)Reply scheduled.item_updated(String, 14 characters)Reply updated.menu_name(String, 7 characters)Repliesedit(String, 4 characters)Editview(String, 10 characters)View Replyname_admin_bar(String, 5 characters)ReplyNo Methods
description(String, 15 characters)bbPress Repliespublic(Boolean)TRUEhierarchical(Boolean)FALSEexclude_from_search(Boolean)TRUEpublicly_queryable(Boolean)TRUEshow_ui(Boolean)FALSEshow_in_menu(Boolean)FALSEshow_in_nav_menus(Boolean)FALSEshow_in_admin_bar(Boolean)FALSEmenu_position(Integer)555555menu_icon(String, 0 characters)capability_type(String, 5 characters)replymap_meta_cap(Boolean)FALSEregister_meta_box_cb(NULL)taxonomies(Array, 0 elements)
Empty Array
has_archive(Boolean)FALSEquery_var(String, 5 characters)replycan_export(Boolean)TRUEdelete_with_user(NULL)_builtin(Boolean)FALSE_edit_link(String, 0 characters)cap(Object, stdClass, 10 properties)
edit_post(String, 10 characters)edit_replyread_post(String, 10 characters)read_replydelete_post(String, 12 characters)delete_replyedit_posts(String, 12 characters)edit_repliesedit_others_posts(String, 19 characters)edit_others_repliespublish_posts(String, 15 characters)publish_repliesread_private_posts(String, 20 characters)read_private_repliesdelete_posts(String, 14 characters)delete_repliesdelete_others_posts(String, 21 characters)delete_others_repliescreate_posts(String, 12 characters)edit_repliesNo Methods
rewrite(Array, 5 elements)
slug(String, 12 characters)forums/replywith_front(Boolean)FALSEpages(Boolean)TRUEfeeds(Boolean)FALSEep_mask(Integer)1
show_in_rest(Boolean)FALSErest_base(Boolean)FALSErest_controller_class(Boolean)FALSErest_controller(NULL)source(String, 7 characters)bbpresspublic __construct($post_type, $args = array ( ))
/**
 * Constructor.
 *
 * Will populate object properties from the provided arguments and assign other
 * default properties based on that information.
 *
 * @since 4.6.0
 *
 * @see register_post_type()
 *
 * @param string       $post_type Post type key.
 * @param array|string $args      Optional. Array or string of arguments for registering a post type.
 *                                Default empty array.
 */
public set_props($args)
/**
 * Sets post type properties.
 *
 * @since 4.6.0
 *
 * @param array|string $args Array or string of arguments for registering a post type.
 */
public add_supports()
/**
 * Sets the features support for the post type.
 *
 * @since 4.6.0
 */
public add_rewrite_rules()
/**
 * Adds the necessary rewrite rules for the post type.
 *
 * @since 4.6.0
 *
 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
 * @global WP         $wp         Current WordPress environment instance.
 */
public register_meta_boxes()
/**
 * Registers the post type meta box if a custom callback was specified.
 *
 * @since 4.6.0
 */
public add_hooks()
/**
 * Adds the future post hook action for the post type.
 *
 * @since 4.6.0
 */
public register_taxonomies()
/**
 * Registers the taxonomies for the post type.
 *
 * @since 4.6.0
 */
public remove_supports()
/**
 * Removes the features support for the post type.
 *
 * @since 4.6.0
 *
 * @global array $_wp_post_type_features Post type features.
 */
public remove_rewrite_rules()
/**
 * Removes any rewrite rules, permastructs, and rules for the post type.
 *
 * @since 4.6.0
 *
 * @global WP_Rewrite $wp_rewrite          WordPress rewrite component.
 * @global WP         $wp                  Current WordPress environment instance.
 * @global array      $post_type_meta_caps Used to remove meta capabilities.
 */
public unregister_meta_boxes()
/**
 * Unregisters the post type meta box if a custom callback was specified.
 *
 * @since 4.6.0
 */
public unregister_taxonomies()
/**
 * Removes the post type from all taxonomies.
 *
 * @since 4.6.0
 */
public remove_hooks()
/**
 * Removes the future post hook action for the post type.
 *
 * @since 4.6.0
 */
public get_rest_controller()
/**
 * Gets the REST API controller for this post type.
 *
 * Will only instantiate the controller class once per request.
 *
 * @since 5.3.0
 *
 * @return WP_REST_Controller|null The controller instance, or null if the post type
 *                                 is set not to show in rest.
 */
qanda
· · · · ·(Object, WP_Post_Type, 30 properties)
name(String, 5 characters)qandalabel(String, 7 characters)Answerslabels(Object, stdClass, 31 properties)
name(String, 7 characters)Answerssingular_name(String, 6 characters)Answeradd_new(String, 7 characters)Add Newadd_new_item(String, 15 characters)Add New Q And Aedit_item(String, 12 characters)Edit Q And Anew_item(String, 11 characters)New Q And Aview_item(String, 12 characters)View Q And Aview_items(String, 12 characters)View Q And Asearch_items(String, 14 characters)Search Q And Anot_found(String, 16 characters)No Q And A Foundnot_found_in_trash(String, 25 characters)No Q And A Found In Trashparent_item_colon(String, 15 characters)Parent Q And A:all_items(String, 11 characters)All Q And Aarchives(String, 16 characters)Q And A Archivesattributes(String, 18 characters)Q And A Attributesinsert_into_item(String, 19 characters)Insert Into Q And Auploaded_to_this_item(String, 24 characters)Uploaded to this Q And Afeatured_image(String, 14 characters)Featured Imageset_featured_image(String, 18 characters)Set Featured Imageremove_featured_image(String, 21 characters)Remove Featured Imageuse_featured_image(String, 18 characters)Use Featured Imagefilter_items_list(String, 19 characters)Filter Q And A Listitems_list_navigation(String, 23 characters)Q And A List Navigationitems_list(String, 12 characters)Q And A Listitem_published(String, 0 characters)item_published_privately(String, 0 characters)item_reverted_to_draft(String, 0 characters)item_scheduled(String, 0 characters)item_updated(String, 0 characters)menu_name(String, 7 characters)Q And Aname_admin_bar(String, 7 characters)Q And ANo Methods
description(String, 0 characters)public(Boolean)TRUEhierarchical(Boolean)FALSEexclude_from_search(Boolean)FALSEpublicly_queryable(Boolean)TRUEshow_ui(Boolean)TRUEshow_in_menu(Boolean)TRUEshow_in_nav_menus(Boolean)TRUEshow_in_admin_bar(Boolean)TRUEmenu_position(NULL)menu_icon(String, 22 characters)dashicons-format-quotecapability_type(String, 4 characters)postmap_meta_cap(Boolean)TRUEregister_meta_box_cb(NULL)taxonomies(Array, 0 elements)
Empty Array
has_archive(String, 7 characters)answersquery_var(String, 6 characters)answercan_export(Boolean)TRUEdelete_with_user(NULL)_builtin(Boolean)FALSE_edit_link(String, 16 characters)post.php?post=%dcap(Object, stdClass, 15 properties)
edit_post(String, 9 characters)edit_postread_post(String, 9 characters)read_postdelete_post(String, 11 characters)delete_postedit_posts(String, 10 characters)edit_postsedit_others_posts(String, 17 characters)edit_others_postspublish_posts(String, 13 characters)publish_postsread_private_posts(String, 18 characters)read_private_postsread(String, 4 characters)readdelete_posts(String, 12 characters)delete_postsdelete_private_posts(String, 20 characters)delete_private_postsdelete_published_posts(String, 22 characters)delete_published_postsdelete_others_posts(String, 19 characters)delete_others_postsedit_private_posts(String, 18 characters)edit_private_postsedit_published_posts(String, 20 characters)edit_published_postscreate_posts(String, 10 characters)edit_postsNo Methods
rewrite(Array, 5 elements)
slug(String, 6 characters)answerwith_front(Boolean)TRUEpages(Boolean)TRUEfeeds(Boolean)TRUEep_mask(Integer)1
show_in_rest(Boolean)TRUErest_base(String, 5 characters)qandarest_controller_class(Boolean)FALSErest_controller(NULL)public __construct($post_type, $args = array ( ))
/**
 * Constructor.
 *
 * Will populate object properties from the provided arguments and assign other
 * default properties based on that information.
 *
 * @since 4.6.0
 *
 * @see register_post_type()
 *
 * @param string       $post_type Post type key.
 * @param array|string $args      Optional. Array or string of arguments for registering a post type.
 *                                Default empty array.
 */
public set_props($args)
/**
 * Sets post type properties.
 *
 * @since 4.6.0
 *
 * @param array|string $args Array or string of arguments for registering a post type.
 */
public add_supports()
/**
 * Sets the features support for the post type.
 *
 * @since 4.6.0
 */
public add_rewrite_rules()
/**
 * Adds the necessary rewrite rules for the post type.
 *
 * @since 4.6.0
 *
 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
 * @global WP         $wp         Current WordPress environment instance.
 */
public register_meta_boxes()
/**
 * Registers the post type meta box if a custom callback was specified.
 *
 * @since 4.6.0
 */
public add_hooks()
/**
 * Adds the future post hook action for the post type.
 *
 * @since 4.6.0
 */
public register_taxonomies()
/**
 * Registers the taxonomies for the post type.
 *
 * @since 4.6.0
 */
public remove_supports()
/**
 * Removes the features support for the post type.
 *
 * @since 4.6.0
 *
 * @global array $_wp_post_type_features Post type features.
 */
public remove_rewrite_rules()
/**
 * Removes any rewrite rules, permastructs, and rules for the post type.
 *
 * @since 4.6.0
 *
 * @global WP_Rewrite $wp_rewrite          WordPress rewrite component.
 * @global WP         $wp                  Current WordPress environment instance.
 * @global array      $post_type_meta_caps Used to remove meta capabilities.
 */
public unregister_meta_boxes()
/**
 * Unregisters the post type meta box if a custom callback was specified.
 *
 * @since 4.6.0
 */
public unregister_taxonomies()
/**
 * Removes the post type from all taxonomies.
 *
 * @since 4.6.0
 */
public remove_hooks()
/**
 * Removes the future post hook action for the post type.
 *
 * @since 4.6.0
 */
public get_rest_controller()
/**
 * Gets the REST API controller for this post type.
 *
 * Will only instantiate the controller class once per request.
 *
 * @since 5.3.0
 *
 * @return WP_REST_Controller|null The controller instance, or null if the post type
 *                                 is set not to show in rest.
 */
plugin
· · · · ·(Object, WP_Post_Type, 30 properties)
name(String, 6 characters)pluginlabel(String, 7 characters)Pluginslabels(Object, stdClass, 31 properties)
name(String, 7 characters)Pluginssingular_name(String, 6 characters)Pluginadd_new(String, 7 characters)Add Newadd_new_item(String, 14 characters)Add New Pluginedit_item(String, 11 characters)Edit Pluginnew_item(String, 10 characters)New Pluginview_item(String, 11 characters)View Pluginview_items(String, 12 characters)View Pluginssearch_items(String, 14 characters)Search Pluginsnot_found(String, 16 characters)No Plugins Foundnot_found_in_trash(String, 25 characters)No Plugins Found In Trashparent_item_colon(String, 14 characters)Parent Plugin:all_items(String, 11 characters)All Pluginsarchives(String, 15 characters)Plugin Archivesattributes(String, 17 characters)Plugin Attributesinsert_into_item(String, 18 characters)Insert Into Pluginuploaded_to_this_item(String, 23 characters)Uploaded to this Pluginfeatured_image(String, 14 characters)Featured Imageset_featured_image(String, 18 characters)Set Featured Imageremove_featured_image(String, 21 characters)Remove Featured Imageuse_featured_image(String, 18 characters)Use Featured Imagefilter_items_list(String, 19 characters)Filter Plugins Listitems_list_navigation(String, 23 characters)Plugins List Navigationitems_list(String, 12 characters)Plugins Listitem_published(String, 0 characters)item_published_privately(String, 0 characters)item_reverted_to_draft(String, 0 characters)item_scheduled(String, 0 characters)item_updated(String, 0 characters)menu_name(String, 7 characters)Pluginsname_admin_bar(String, 6 characters)PluginNo Methods
description(String, 0 characters)public(Boolean)TRUEhierarchical(Boolean)FALSEexclude_from_search(Boolean)FALSEpublicly_queryable(Boolean)TRUEshow_ui(Boolean)TRUEshow_in_menu(Boolean)TRUEshow_in_nav_menus(Boolean)TRUEshow_in_admin_bar(Boolean)TRUEmenu_position(NULL)menu_icon(String, 21 characters)dashicons-tickets-altcapability_type(String, 4 characters)postmap_meta_cap(Boolean)TRUEregister_meta_box_cb(NULL)taxonomies(Array, 0 elements)
Empty Array
has_archive(String, 7 characters)pluginsquery_var(String, 6 characters)plugincan_export(Boolean)TRUEdelete_with_user(NULL)_builtin(Boolean)FALSE_edit_link(String, 16 characters)post.php?post=%dcap(Object, stdClass, 15 properties)
edit_post(String, 9 characters)edit_postread_post(String, 9 characters)read_postdelete_post(String, 11 characters)delete_postedit_posts(String, 10 characters)edit_postsedit_others_posts(String, 17 characters)edit_others_postspublish_posts(String, 13 characters)publish_postsread_private_posts(String, 18 characters)read_private_postsread(String, 4 characters)readdelete_posts(String, 12 characters)delete_postsdelete_private_posts(String, 20 characters)delete_private_postsdelete_published_posts(String, 22 characters)delete_published_postsdelete_others_posts(String, 19 characters)delete_others_postsedit_private_posts(String, 18 characters)edit_private_postsedit_published_posts(String, 20 characters)edit_published_postscreate_posts(String, 10 characters)edit_postsNo Methods
rewrite(Array, 5 elements)
slug(String, 6 characters)pluginwith_front(Boolean)TRUEpages(Boolean)TRUEfeeds(Boolean)TRUEep_mask(Integer)1
show_in_rest(Boolean)TRUErest_base(String, 6 characters)pluginrest_controller_class(Boolean)FALSErest_controller(NULL)public __construct($post_type, $args = array ( ))
/**
 * Constructor.
 *
 * Will populate object properties from the provided arguments and assign other
 * default properties based on that information.
 *
 * @since 4.6.0
 *
 * @see register_post_type()
 *
 * @param string       $post_type Post type key.
 * @param array|string $args      Optional. Array or string of arguments for registering a post type.
 *                                Default empty array.
 */
public set_props($args)
/**
 * Sets post type properties.
 *
 * @since 4.6.0
 *
 * @param array|string $args Array or string of arguments for registering a post type.
 */
public add_supports()
/**
 * Sets the features support for the post type.
 *
 * @since 4.6.0
 */
public add_rewrite_rules()
/**
 * Adds the necessary rewrite rules for the post type.
 *
 * @since 4.6.0
 *
 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
 * @global WP         $wp         Current WordPress environment instance.
 */
public register_meta_boxes()
/**
 * Registers the post type meta box if a custom callback was specified.
 *
 * @since 4.6.0
 */
public add_hooks()
/**
 * Adds the future post hook action for the post type.
 *
 * @since 4.6.0
 */
public register_taxonomies()
/**
 * Registers the taxonomies for the post type.
 *
 * @since 4.6.0
 */
public remove_supports()
/**
 * Removes the features support for the post type.
 *
 * @since 4.6.0
 *
 * @global array $_wp_post_type_features Post type features.
 */
public remove_rewrite_rules()
/**
 * Removes any rewrite rules, permastructs, and rules for the post type.
 *
 * @since 4.6.0
 *
 * @global WP_Rewrite $wp_rewrite          WordPress rewrite component.
 * @global WP         $wp                  Current WordPress environment instance.
 * @global array      $post_type_meta_caps Used to remove meta capabilities.
 */
public unregister_meta_boxes()
/**
 * Unregisters the post type meta box if a custom callback was specified.
 *
 * @since 4.6.0
 */
public unregister_taxonomies()
/**
 * Removes the post type from all taxonomies.
 *
 * @since 4.6.0
 */
public remove_hooks()
/**
 * Removes the future post hook action for the post type.
 *
 * @since 4.6.0
 */
public get_rest_controller()
/**
 * Gets the REST API controller for this post type.
 *
 * Will only instantiate the controller class once per request.
 *
 * @since 5.3.0
 *
 * @return WP_REST_Controller|null The controller instance, or null if the post type
 *                                 is set not to show in rest.
 */
gd-topic-poll
· · · · ·(Object, WP_Post_Type, 30 properties)
name(String, 13 characters)gd-topic-polllabel(String, 11 characters)Topic Pollslabels(Object, stdClass, 31 properties)
name(String, 11 characters)Topic Pollssingular_name(String, 10 characters)Topic Polladd_new(String, 18 characters)Add New Topic Polladd_new_item(String, 18 characters)Add New Topic Polledit_item(String, 15 characters)Edit Topic Pollnew_item(String, 14 characters)New Topic Pollview_item(String, 15 characters)View Topic Pollview_items(String, 16 characters)View Topic Pollssearch_items(String, 18 characters)Search Topic Pollsnot_found(String, 20 characters)No Topic Polls Foundnot_found_in_trash(String, 29 characters)No Topic Polls Found In Trashparent_item_colon(String, 19 characters)Parent Topic Polls:all_items(String, 15 characters)All Topic Pollsarchives(String, 19 characters)Topic Poll Archivesattributes(String, 21 characters)Topic Poll Attributesinsert_into_item(String, 22 characters)Insert into Topic Polluploaded_to_this_item(String, 27 characters)Uploaded to this Topic Pollfeatured_image(String, 14 characters)Featured imageset_featured_image(String, 18 characters)Set featured imageremove_featured_image(String, 21 characters)Remove featured imageuse_featured_image(String, 18 characters)Use featured imagefilter_items_list(String, 23 characters)Filter Topic Polls listitems_list_navigation(String, 27 characters)Topic Polls list navigationitems_list(String, 16 characters)Topic Polls listitem_published(String, 15 characters)Post published.item_published_privately(String, 25 characters)Post published privately.item_reverted_to_draft(String, 23 characters)Post reverted to draft.item_scheduled(String, 15 characters)Post scheduled.item_updated(String, 13 characters)Post updated.menu_name(String, 11 characters)Topic Pollsname_admin_bar(String, 10 characters)Topic PollNo Methods
description(String, 0 characters)public(Boolean)FALSEhierarchical(Boolean)FALSEexclude_from_search(Boolean)TRUEpublicly_queryable(Boolean)FALSEshow_ui(Boolean)FALSEshow_in_menu(Boolean)FALSEshow_in_nav_menus(Boolean)FALSEshow_in_admin_bar(Boolean)FALSEmenu_position(NULL)menu_icon(NULL)capability_type(String, 4 characters)postmap_meta_cap(Boolean)TRUEregister_meta_box_cb(NULL)taxonomies(Array, 0 elements)
Empty Array
has_archive(Boolean)FALSEquery_var(Boolean)FALSEcan_export(Boolean)TRUEdelete_with_user(Boolean)FALSE_builtin(Boolean)FALSE_edit_link(String, 0 characters)cap(Object, stdClass, 15 properties)
edit_post(String, 9 characters)edit_postread_post(String, 9 characters)read_postdelete_post(String, 11 characters)delete_postedit_posts(String, 10 characters)edit_postsedit_others_posts(String, 17 characters)edit_others_postspublish_posts(String, 13 characters)publish_postsread_private_posts(String, 18 characters)read_private_postsread(String, 4 characters)readdelete_posts(String, 12 characters)delete_postsdelete_private_posts(String, 20 characters)delete_private_postsdelete_published_posts(String, 22 characters)delete_published_postsdelete_others_posts(String, 19 characters)delete_others_postsedit_private_posts(String, 18 characters)edit_private_postsedit_published_posts(String, 20 characters)edit_published_postscreate_posts(String, 10 characters)edit_postsNo Methods
rewrite(Boolean)FALSEshow_in_rest(Boolean)FALSErest_base(Boolean)FALSErest_controller_class(Boolean)FALSErest_controller(NULL)public __construct($post_type, $args = array ( ))
/**
 * Constructor.
 *
 * Will populate object properties from the provided arguments and assign other
 * default properties based on that information.
 *
 * @since 4.6.0
 *
 * @see register_post_type()
 *
 * @param string       $post_type Post type key.
 * @param array|string $args      Optional. Array or string of arguments for registering a post type.
 *                                Default empty array.
 */
public set_props($args)
/**
 * Sets post type properties.
 *
 * @since 4.6.0
 *
 * @param array|string $args Array or string of arguments for registering a post type.
 */
public add_supports()
/**
 * Sets the features support for the post type.
 *
 * @since 4.6.0
 */
public add_rewrite_rules()
/**
 * Adds the necessary rewrite rules for the post type.
 *
 * @since 4.6.0
 *
 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
 * @global WP         $wp         Current WordPress environment instance.
 */
public register_meta_boxes()
/**
 * Registers the post type meta box if a custom callback was specified.
 *
 * @since 4.6.0
 */
public add_hooks()
/**
 * Adds the future post hook action for the post type.
 *
 * @since 4.6.0
 */
public register_taxonomies()
/**
 * Registers the taxonomies for the post type.
 *
 * @since 4.6.0
 */
public remove_supports()
/**
 * Removes the features support for the post type.
 *
 * @since 4.6.0
 *
 * @global array $_wp_post_type_features Post type features.
 */
public remove_rewrite_rules()
/**
 * Removes any rewrite rules, permastructs, and rules for the post type.
 *
 * @since 4.6.0
 *
 * @global WP_Rewrite $wp_rewrite          WordPress rewrite component.
 * @global WP         $wp                  Current WordPress environment instance.
 * @global array      $post_type_meta_caps Used to remove meta capabilities.
 */
public unregister_meta_boxes()
/**
 * Unregisters the post type meta box if a custom callback was specified.
 *
 * @since 4.6.0
 */
public unregister_taxonomies()
/**
 * Removes the post type from all taxonomies.
 *
 * @since 4.6.0
 */
public remove_hooks()
/**
 * Removes the future post hook action for the post type.
 *
 * @since 4.6.0
 */
public get_rest_controller()
/**
 * Gets the REST API controller for this post type.
 *
 * Will only instantiate the controller class once per request.
 *
 * @since 5.3.0
 *
 * @return WP_REST_Controller|null The controller instance, or null if the post type
 *                                 is set not to show in rest.
 */
newsletter
· · · · ·(Object, WP_Post_Type, 30 properties)
name(String, 10 characters)newsletterlabel(String, 9 characters)Campaignslabels(Object, stdClass, 31 properties)
name(String, 9 characters)Campaignssingular_name(String, 8 characters)Campaignadd_new(String, 12 characters)New Campaignadd_new_item(String, 21 characters)Create A New Campaignedit_item(String, 13 characters)Edit Campaignnew_item(String, 12 characters)New Campaignview_item(String, 15 characters)View Newsletterview_items(String, 10 characters)View Postssearch_items(String, 16 characters)Search Campaignsnot_found(String, 17 characters)No Campaign foundnot_found_in_trash(String, 26 characters)No Campaign found in Trashparent_item_colon(String, 0 characters)all_items(String, 13 characters)All Campaignsarchives(String, 13 characters)All Campaignsattributes(String, 15 characters)Post Attributesinsert_into_item(String, 16 characters)Insert into postuploaded_to_this_item(String, 21 characters)Uploaded to this postfeatured_image(String, 14 characters)Featured Imageset_featured_image(String, 18 characters)Set featured imageremove_featured_image(String, 21 characters)Remove featured imageuse_featured_image(String, 21 characters)Use as featured imagefilter_items_list(String, 22 characters)Filter Newsletter listitems_list_navigation(String, 26 characters)Newsletter list navigationitems_list(String, 15 characters)Newsletter listitem_published(String, 15 characters)Post published.item_published_privately(String, 25 characters)Post published privately.item_reverted_to_draft(String, 23 characters)Post reverted to draft.item_scheduled(String, 15 characters)Post scheduled.item_updated(String, 13 characters)Post updated.menu_name(String, 10 characters)Newslettername_admin_bar(String, 8 characters)CampaignNo Methods
description(String, 0 characters)public(Boolean)TRUEhierarchical(Boolean)FALSEexclude_from_search(Boolean)TRUEpublicly_queryable(Boolean)TRUEshow_ui(Boolean)TRUEshow_in_menu(Boolean)TRUEshow_in_nav_menus(Boolean)FALSEshow_in_admin_bar(Boolean)TRUEmenu_position(NULL)menu_icon(String, 18 characters)dashicons-mailstercapability_type(String, 10 characters)newslettermap_meta_cap(Boolean)TRUEregister_meta_box_cb(Array, 2 elements)
0(Object, MailsterCampaigns, 0 properties)
MailsterCampaignsdefaultTemplate(String, 8 characters)mailsterMailsterCampaignstemplate(NULL)MailsterCampaignstemplatefile(NULL)MailsterCampaignstemplateobj(NULL)public __construct()public init()public prevent_edit_lock($bool, $object_id, $meta_key, $meta_value, $prev_value)public __call($func, $args)
/**
 *
 *
 * @return unknown
 * @param unknown $func
 * @param unknown $args
 */
public autoresponder_hook($campaign_id, $subscriber_ids = NULL, $args = array ( ))
/**
 *
 *
 * @param unknown $campaign_id
 * @param unknown $subscriber_ids (optional)
 * @param unknown $args           (optional)
 */
public register_post_type()public register_post_status()public meta_boxes()public remove_meta_boxs()public display_post_states($post_states, $post)public autoresponder_menu()public newsletter_details()public newsletter_template()public newsletter_delivery()public newsletter_receivers()public newsletter_options()public newsletter_attachment()public newsletter_submit($post)
/**
 *
 *
 * @param unknown $post
 */
public get_the_excerpt($excerpt)public edit_hook()public preload($query)
/**
 *
 *
 * @param unknown $query
 */
public notice()
/**
 *
 *
 * @return unknown
 */
public updated_messages($messages)
/**
 *
 *
 * @param unknown $messages
 * @return unknown
 */
public columns($columns)
/**
 *
 *
 * @param unknown $columns
 * @return unknown
 */
public columns_sortable($columns)
/**
 *
 *
 * @param unknown $columns
 * @return unknown
 */
public columns_sortable_helper($query)
/**
 *
 *
 * @param unknown $query
 */
public columns_orderby_status($orderby)
/**
 *
 *
 * @param unknown $orderby
 * @return unknown
 */
public get_columns_content($column)
/**
 *
 *
 * @param unknown $column
 * @return unknown
 */
public columns_content($column)
/**
 *
 *
 * @param unknown $column
 */
public bulk_actions($actions)
/**
 *
 *
 * @param unknown $actions
 * @return unknown
 */
public quick_edit_btns($actions, $campaign)
/**
 *
 *
 * @param unknown $actions
 * @param unknown $campaign
 * @return unknown
 */
public title($title)
/**
 *
 *
 * @param unknown $title
 * @return unknown
 */
public set_before_trash_status($new_status, $old_status, $campaign)public assets()public inline_editor()
/**
 *
 *
 * @return unknown
 */
public add_post_thumbnail_link($content, $post_id)
/**
 *
 *
 * @param unknown $content
 * @param unknown $post_id
 * @return unknown
 */
public admin_post_thumbnail_size($size, $thumbnail_id, $post)
/**
 *
 *
 * @param unknown $size
 * @param unknown $thumbnail_id
 * @param unknown $post
 * @return unknown
 */
public remove_kses($content)
/**
 *
 *
 * @param unknown $content
 * @return unknown
 */
public wp_insert_post_data($post, $postarr)
/**
 *
 *
 * @param unknown $post
 * @param unknown $postarr
 * @return unknown
 */
public save_campaign($post_id, $post, $update = NULL)
/**
 *
 *
 * @param unknown $post_id
 * @param unknown $post
 * @param unknown $update  (optional)
 * @return unknown
 */
public list_based_opt_out($id)
/**
 *
 *
 * @param unknown $id
 * @return unknown
 */
public meta($id, $key = NULL)
/**
 *
 *
 * @param unknown $id
 * @param unknown $key (optional)
 * @return unknown
 */
public update_meta($id, $key, $value = NULL)
/**
 *
 *
 * @param unknown $id
 * @param unknown $key
 * @param unknown $value (optional)
 * @return unknown
 */
public meta_defaults($key = NULL)
/**
 *
 *
 * @param unknown $key (optional)
 * @return unknown
 */
public pause($id)
/**
 *
 *
 * @param unknown $id
 * @return unknown
 */
public start($id)
/**
 *
 *
 * @param unknown $id
 * @return unknown
 */
public finish($id, $check = true)
/**
 *
 *
 * @param unknown $id
 * @param unknown $check (optional)
 * @return unknown
 */
public duplicate($id)
/**
 *
 *
 * @param unknown $id
 * @return unknown
 */
public activate($id)
/**
 *
 *
 * @param unknown $id
 * @return unknown
 */
public deactivate($id)
/**
 *
 *
 * @param unknown $id
 * @return unknown
 */
public autoresponder_to_campaign($id, $delay = 0, $issue = '')
/**
 *
 *
 * @param unknown $id
 * @param unknown $delay (optional)
 * @param unknown $issue (optional)
 * @return unknown
 */
public delete_campaign($id)
/**
 *
 *
 * @param unknown $id
 */
public get($id = NULL)
/**
 *
 *
 * @param unknown $id (optional)
 * @return unknown
 */
public get_formated_lists($id)
/**
 *
 *
 * @param unknown $id
 * @return unknown
 */
public get_lists($id, $ids_only = false)
/**
 *
 *
 * @param unknown $id
 * @param unknown $ids_only (optional)
 * @return unknown
 */
public add_lists($id, $list_ids, $clear = false)
/**
 *
 *
 * @param unknown $id
 * @param unknown $list_ids
 * @param unknown $clear    (optional)
 * @return unknown
 */
public get_active($args = '')
/**
 *
 *
 * @param unknown $args (optional)
 * @return unknown
 */
public get_paused($args = '')
/**
 *
 *
 * @param unknown $args (optional)
 * @return unknown
 */
public get_queued($args = '')
/**
 *
 *
 * @param unknown $args (optional)
 * @return unknown
 */
public get_drafted($args = '')
/**
 *
 *
 * @param unknown $args (optional)
 * @return unknown
 */
public get_finished($args = '')
/**
 *
 *
 * @param unknown $args (optional)
 * @return unknown
 */
public get_pending($args = '')
/**
 *
 *
 * @param unknown $args (optional)
 * @return unknown
 */
public get_autoresponder($args = '', $type = NULL)
/**
 *
 *
 * @param unknown $args (optional)
 * @param unknown $type (optional)
 * @return unknown
 */
public get_campaigns($args = '')
/**
 *
 *
 * @param unknown $args (optional)
 * @return unknown
 */
public get_subscribers($id = NULL, $statuses = NULL, $return_ids = false, $ignore_sent = false, $ignore_queue = false, $limit = NULL, $offset = 0, $returnsql = false)
/**
 *
 *
 * @param unknown $id           (optional)
 * @param unknown $statuses     (optional)
 * @param unknown $return_ids   (optional)
 * @param unknown $ignore_sent  (optional)
 * @param unknown $ignore_queue (optional)
 * @param unknown $limit        (optional)
 * @param unknown $offset       (optional)
 * @param unknown $returnsql    (optional)
 * @return unknown
 */
public get_subscribers_by_lists($lists = false, $conditions = NULL, $statuses = NULL, $return_ids = false, $ignore_sent = false, $ignore_queue = false, $limit = NULL, $offset = 0, $returnsql = false)
/**
 *
 *
 * @param unknown $lists        (optional)
 * @param unknown $conditions   (optional)
 * @param unknown $statuses     (optional)
 * @param unknown $return_ids   (optional)
 * @param unknown $ignore_sent  (optional)
 * @param unknown $ignore_queue (optional)
 * @param unknown $limit        (optional)
 * @param unknown $offset       (optional)
 * @param unknown $returnsql    (optional)
 * @return unknown
 */
public get_unsent_subscribers($id = NULL, $statuses = NULL, $return_ids = false, $ignore_queue = false, $limit = NULL, $offset = 0)
/**
 *
 *
 * @param unknown $id           (optional)
 * @param unknown $statuses     (optional)
 * @param unknown $return_ids   (optional)
 * @param unknown $ignore_queue (optional)
 * @param unknown $limit        (optional)
 * @param unknown $offset       (optional)
 * @return unknown
 */
public get_sent_subscribers($id = NULL)
/**
 *
 *
 * @param unknown $id (optional)
 * @return unknown
 */
public get_links($id = NULL, $unique = true)
/**
 *
 *
 * @param unknown $id     (optional)
 * @param unknown $unique (optional)
 * @return unknown
 */
public get_excerpt($id = NULL)
/**
 *
 *
 * @param unknown $id (optional)
 * @return unknown
 */
public get_totals($id = NULL, $unsubscribes = true, $bounces = false)
/**
 *
 *
 * @param unknown $id           (optional)
 * @param unknown $unsubscribes (optional)
 * @param unknown $bounces      (optional)
 * @return unknown
 */
public get_totals_by_lists($lists = false, $conditions = NULL, $statuses = NULL, $campaign_id = NULL)
/**
 *
 *
 * @param unknown $lists       (optional)
 * @param unknown $conditions  (optional)
 * @param unknown $statuses    (optional)
 * @param unknown $campaign_id (optional)
 * @return unknown
 */
public get_sent($id = NULL, $total = false)
/**
 *
 *
 * @param unknown $id    (optional)
 * @param unknown $total (optional)
 * @return unknown
 */
public get_sent_rate($id = NULL, $total = false)
/**
 *
 *
 * @param unknown $id    (optional)
 * @param unknown $total (optional)
 * @return unknown
 */
public get_errors($id = NULL, $total = false)
/**
 *
 *
 * @param unknown $id    (optional)
 * @param unknown $total (optional)
 * @return unknown
 */
public get_error_rate($id = NULL, $total = false)
/**
 *
 *
 * @param unknown $id    (optional)
 * @param unknown $total (optional)
 * @return unknown
 */
public get_opens($id = NULL, $total = false)
/**
 *
 *
 * @param unknown $id    (optional)
 * @param unknown $total (optional)
 * @return unknown
 */
public get_open_rate($id = NULL, $total = false)
/**
 *
 *
 * @param unknown $id    (optional)
 * @param unknown $total (optional)
 * @return unknown
 */
public get_clicks($id = NULL, $total = false)
/**
 *
 *
 * @param unknown $id    (optional)
 * @param unknown $total (optional)
 * @return unknown
 */
public get_click_rate($id = NULL, $total = false)
/**
 *
 *
 * @param unknown $id    (optional)
 * @param unknown $total (optional)
 * @return unknown
 */
public get_adjusted_click_rate($id = NULL, $total = false)
/**
 *
 *
 * @param unknown $id    (optional)
 * @param unknown $total (optional)
 * @return unknown
 */
public get_unsubscribes($id = NULL)
/**
 *
 *
 * @param unknown $id (optional)
 * @return unknown
 */