\ BWP_Sitemaps_Provider_Post

Summary

Methods
Properties
Constants
__construct()
get_exluder()
get_bridge()
get_domain()
get_post_types()
get_public_posts()
get_public_posts_by_title()
No public properties found
No constants found
No protected methods found
$plugin
$bridge
$excluder
N/A

Properties

$plugin

$plugin : 

$bridge

$bridge : 

$excluder

$excluder : 

Methods

get_exluder()

get_exluder() 

get_bridge()

get_bridge() 

get_domain()

get_domain() 

get_post_types()

get_post_types() : array

Get all public post types, except for attachment

Returns

array

get_public_posts()

get_public_posts(string  $post_type, array  $ids = array(), array  $excluded_ids = array(), integer  $limit = 200) : array<mixed,\WP_Post>

Get all public posts of a specific post type, optionally filtered by post ids

Parameters

string $post_type
array $ids
array $excluded_ids
integer $limit

default to retrieve only last 200 posts

Returns

array<mixed,\WP_Post>

get_public_posts_by_title()

get_public_posts_by_title(string  $post_type, string  $title) : array<mixed,\WP_Post>

Get all public posts, filtered by their titles

This is a case insensitive search

Parameters

string $post_type
string $title

part of the title

Returns

array<mixed,\WP_Post>