EPL_Advanced_Shortcode_Listing Class
| Since | |
|---|---|
3.3.0 |
|
| Methods | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
public
|
__construct(array $atts, array $overrides = [])
Construct the shortcode.
Construct the shortcode. Parameters
Since
|
# | ||||||||
public
|
override_atts(array $overrides)
Override Attributes.
Override Attributes. Parameters
Since
|
# | ||||||||
public
|
get_default_post_types()
Get default post types.
Get default post types. Since
|
# | ||||||||
public
|
get_meta_key_price()
Get meta key price.
Get meta key price. The rent when the shortcode lists rentals only, otherwise the price. Since
|
# | ||||||||
public
|
get_default_args()
Get default options.
|
# | ||||||||
public
|
shortcode_atts()
Shortcode attributes
Shortcode attributes Since
|
# | ||||||||
public
|
set_attribute(string $key, string $value)
Set attributes
Set attributes Parameters
Since
|
# | ||||||||
public
|
get_attribute(string $key): mixed|null
Get attributes
Get attributes Parameters
Since
|
# | ||||||||
public
|
set_post_type()
Set the post type
Set the post type Since
|
# | ||||||||
public
|
set_initial_args()
Set initial options
Set initial options Since
|
# | ||||||||
public
|
set_offset()
Set the offset
Set the offset Since
|
# | ||||||||
public
|
set_post__in()
Set posts in
Set posts in Since
|
# | ||||||||
public
|
set_post__not_in()
Set posts not in
Set posts not in Since
|
# | ||||||||
public
|
process_epl_atts()
Process EPL attributes
Process EPL attributes Since
|
# | ||||||||
public
|
set_author()
Set the author
Set the author Since
|
# | ||||||||
public
|
set_agent()
Set the agent
Set the agent Since
|
# | ||||||||
public
|
set_featured()
Set featured
Set featured Since
|
# | ||||||||
public
|
set_auction()
Set auction
Set auction Since
|
# | ||||||||
public
|
set_open_house()
Set open for inspection
Set open for inspection Since
|
# | ||||||||
public
|
set_location_tax_query()
Set location taxonomy query
Set location taxonomy query Since
|
# | ||||||||
public
|
set_features_tax_query()
Set feeatures taxonomy query
Set feeatures taxonomy query Since
|
# | ||||||||
public
|
set_status()
Set status
Set status Since
|
# | ||||||||
public
|
set_commercial_listing_type()
Set commercial listing type
Set commercial listing type Since
|
# | ||||||||
public
|
set_orderby()
Set orderby
Set orderby Since
|
# | ||||||||
public
|
set_orderby_clause()
Set orderby clause
Set orderby clause Since
|
# | ||||||||
public
|
set_query()
Set query
Set query Since
|
# | ||||||||
public
|
get_wrap_template()
Get the template
Get the template Since
|
# | ||||||||
public
|
build_query()
Build the query
Build the query Since
|
# | ||||||||
public
|
render()
Render the shortcode
Render the shortcode Since
|
# | ||||||||
public
|
get_wrapper_class(): string
Wrapper classes: the shortcode's own classes, then any class option
Wrapper classes: the shortcode's own classes, then any class option Every listing shortcode always has its own class, like the other listing shortcodes (epl-shortcode-listing-category and so on): epl-shortcode-listing for [listing] and [listing_advanced], plus epl-shortcode-listing-advanced for [listing_advanced]. The class option adds to them instead of replacing them. Since
|
# | ||||||||
| Properties | |||
|---|---|---|---|
public
|
array
|
$default_args
Default arguments.
Default arguments. |
# |
public
|
array
|
$atts
Shortcode attributes.
Shortcode attributes. |
# |
public
|
array
|
$attributes
Shortcode attributes.
Shortcode attributes. |
# |
public
|
array
|
$args
Arguments.
Arguments. |
# |
public
|
string
|
$meta_key_price = 'property_price'
Default price meta value.
Default price meta value. |
# |
public
|
object
|
$query_open
instance of WP_Query object.
instance of WP_Query object. |
# |
public
|
string
|
$shortcode = 'listing_advanced'
Shortcode name.
Shortcode name. |
# |