HJI WP Membership Code Reference
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo
  • Hook Reference
  • Slipstream API Docs

Namespaces

  • hji
    • AgentRoster
      • controllers
      • models
      • utils
    • common
      • factories
      • interfaces
      • models
      • utils
    • construction
      • admin
        • controllers
        • models
      • core
      • front
        • controllers
      • interfaces
      • models
        • listings
        • subdivisions
      • views
    • geofarms
      • common
      • controllers
      • models
      • widgets
    • homevalue
      • controllers
      • core
        • abstracts
      • models
    • lifestylefinder
    • listingstoblog
      • controllers
    • membership
      • abstracts
      • controllers
      • entities
      • extension
        • abstracts
        • interfaces
      • factories
      • includes
      • interfaces
      • models
        • data
        • webservice
          • abstracts
          • actions
          • interfaces
      • observers
      • services
    • recentsales
      • controllers
      • tinymce
      • widgets
    • ResponsiveIDX
      • abstracts
      • adapters
      • controllers
      • core
        • abstracts
      • entities
      • models
      • services
      • tinymce
      • utils
      • widgets
    • schools
      • controllers
      • tinymce
      • widgets
    • users
      • abstracts
      • admin
        • controllers
        • models
      • controllers
      • core
        • abstracts
      • entities
      • models
      • utils
  • None
  • REL
    • controllers
    • Models
    • Taxonomies
    • Utils
      • Convert
    • widgets

Classes

  • Admin
  • FSBO
  • PocketListings
  • rIDXImport

Class PocketListings

Namespace: REL\controllers
Located at classes/controllers/PocketListings.php

Methods summary

public static REL\controllers\PocketListings
# getInstance( )

Returns

REL\controllers\PocketListings

Since

2.0.0
public
# registerActions( )

Since

2.0.0
public
# create_post_type( )

Registering custom post types

Registering custom post types

public
# taxonomy_args( )

Property listing taxonomy structure

Property listing taxonomy structure

public static
# getMetaboxSettings( )
public
# register_taxonomies( )

Registering custom taxonomies

Registering custom taxonomies

public
# add_styles( )

Load front-end styles

Load front-end styles

public
# wp_query_listings( $query )

Altering wp_query before it gets executed - setting results per page value

Altering wp_query before it gets executed - setting results per page value

Parameters

$query
public static WP_Query
# setQueryOrder( WP_Query $query )

Parameters

$query

Returns

WP_Query

Since

2.0.0
public static array
# getQueryOrderArgs( )

Returns

array

Since

2.0.0
public
# use_template( $template )

Renders templates based on the ones selected in general settings of the plugin

Renders templates based on the ones selected in general settings of the plugin

public
# pocket_listing_play_nice_with_default_template( $template )

A Hack to make Pocket Listings play nice with default theme templates.

A Hack to make Pocket Listings play nice with default theme templates.

Possible issue that it solves:

Default archive.php and single.php of any theme can render post thumbnails by default. Since Pocket Listings implements main listing photo as Featured Image of the post, there is a risk of duplicate photo being rendered.

This hack checks if default templates are used for listing post types and if so, fires up filter that removes the_post_thumbnail() content.

public mixed
# remove_extra_thumbnail( $html )

Removes thumbnail html from listing post type

Removes thumbnail html from listing post type

Parameters

$html

Returns

mixed
public
# set_pocket_listing_excerpt( $more )

Another hack Since by default Pocket Listings renders content via the_content, we don't know if the template uses excerpts and strips all html off. Fot hat case we do the following:

Another hack Since by default Pocket Listings renders content via the_content, we don't know if the template uses excerpts and strips all html off. Fot hat case we do the following:

  1. Hook into excerpt public function only on listing post types
  2. Set excerpt_more to 'pocket-listings'
  3. Hook into wp_trim_words and check if $more == 'pocket-listings'
  4. if 3 == true - return full html
public
# dont_trim_excerpt( $text, $num_words, $more, $original_text )
public mixed|string|
# listing_output( $content )

Renders a single listing details page implementation of the_content action hook

Renders a single listing details page implementation of the_content action hook

Parameters

$content
page content

Returns

mixed|string|
public stdClass
# get_pocket_listing( WP_Post $post )

Returns pocket listing object based on post object

Returns pocket listing object based on post object

Parameters

$post
post object

Returns

stdClass

Constants summary

string PREFIX
# '_pl_'
string POST_TYPE
# 'listing'

Properties summary

public string $post_type
# 'listing'
HJI WP Membership Code Reference API documentation generated by ApiGen