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

  • AgentRoster

Class AgentRoster

Namespace: hji\AgentRoster
Located at agent-roster.php

Methods summary

public
# __construct( )
public
# registerPlugin( $plugins )
public
# init( )
public
# addTagsArchiveSupport( $query )
public
# load_styles_scripts( )

Load front-end styles and scripts

Load front-end styles and scripts

public
# rewrite_flush( )

Registers post types, taxonomies and flushes rewrite rules only once on activation

Registers post types, taxonomies and flushes rewrite rules only once on activation

public
# register_post_types( )
public
# register_submenu( )
public
# register_taxonomies( )
public
# save_first_letter( $post_id )

When the post is saved, saves our custom data

When the post is saved, saves our custom data

public
# run_once( )

Tags a post with the first letter of the last name in the alphabet taxonomy

Tags a post with the first letter of the last name in the alphabet taxonomy

public
# register_post_type_office( )
public
# register_post_type_agent( )
public
# register_post_type_testimonial( )
public
# init_submittable_testimonials( )
public
# columns_filter( $columns )
public
# posts_custom_column( $column )
public
# getMetaboxSettings( )
public array
# get_offices_pages( )

Array of names and values for meta box selection field

Array of names and values for meta box selection field

Returns

array
[type] [description]
public array
# get_agents_pages( )

Array of names and values for meta box selection field

Array of names and values for meta box selection field

Returns

array
[type] [description]
public static boolean|string
# get_agent_recent_posts( $agent_name )

Returns recent blog posts with excerpts by a category that is the same as agent's full name.

Returns recent blog posts with excerpts by a category that is the same as agent's full name.

Parameters

$agent_name
Agent Full Name

Returns

boolean|string
  • false or content
public static string
# get_team( $team_leader_id )

Returns HTML code for a team queried by $team_leader_id

Returns HTML code for a team queried by $team_leader_id

Parameters

$team_leader_id

Returns

string
public boolean
# is_template( string $templatePath, string $context = '' )

Checks if provided template path points to an 'agent' template, given the context.

Checks if provided template path points to an 'agent' template, given the context.

Parameters

$templatePath
absolute path to template or filename (with .php extension)
$context
What the template is for.

Returns

boolean
return true if template is recognised as an 'agent' template. False otherwise.
public string
# use_template( string $template )

Checks to see if appropriate templates are present in active template directory. Otherwise uses templates present in plugin's template directory. Hooked onto template_include

Checks to see if appropriate templates are present in active template directory. Otherwise uses templates present in plugin's template directory. Hooked onto template_include

Parameters

$template
Absolute path to template

Returns

string
Absolute path to template

Constants summary

string NAME
# 'Agent Roster'
string AGENTS_TAXONOMY
# 'agent_tags'
HJI WP Membership Code Reference API documentation generated by ApiGen