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

  • Membership

Class Membership

hji\membership\services\DependencyInjector
Extended by hji\membership\abstracts\Component
Extended by hji\membership\abstracts\Controller
Extended by hji\membership\Membership
Namespace: hji\membership
Located at Membership.php

Methods summary

public
# __construct( )
public
# initAccessibleClasses( )

Instantiating classes separately only once

Instantiating classes separately only once

Since

1.0.4
public static hji\membership\Membership
# getInstance( )

Instance of the Membership Class

Instance of the Membership Class

Returns

hji\membership\Membership

Since

1.0.4
public boolean
# isLicensed( )

Checks if membership is licensed based on last available authentication token.

Checks if membership is licensed based on last available authentication token.

Returns

boolean

Since

1.0.4
public array
# getMarkets( )

Returns array of licensed markets or false

Returns array of licensed markets or false

Returns

array
public
# loadThisPluginFirst( )

Forces Membership plugin to load first Important, since we're calling common membership methods from other HJI plugins.

Forces Membership plugin to load first Important, since we're calling common membership methods from other HJI plugins.

public
# admin_menu( )
public
# init( )
public
# registerRequireJs( )
public
# register_scripts( )
public
# enqueue_scripts( )
public
# adminFooterScripts( )

Invoke js in the footer for common usage

Invoke js in the footer for common usage

public mixed
# consolidateHjiMceButtons( $plugins )

Consolidating HJI MCE buttons into a single array.

Consolidating HJI MCE buttons into a single array.

Before TinyMCE gets initialized, we're running custom filter to gather all HJI buttons, so they can be added to MCE panel at once.

Parameters

$plugins

Returns

mixed
public
# addTinyMceButtons( $buttons )
public
# pluginActivation( )
public
# pluginDeactivation( )
public
# membershipUpdate( $params )
public static
# environment( )
public
# registerImageSizes( )

Registers default image dimensions.

Registers default image dimensions.

public array
# addImageSizeNames( $sizes )

Adds image sizes to some selector

Adds image sizes to some selector

Allows media manager to pass custom media sizes into select image (JS) object, which is used in the License Key admin UI to select the correct size.

Parameters

$sizes

Returns

array
public mixed
# addSendGridEmailHeaders( $params )

Adds SendGrid API-specific header to track email activity by license key

Adds SendGrid API-specific header to track email activity by license key

Parameters

$params

Returns

mixed
public string
# removeWPDefaultFromName( $fromName )

Removes "From WordPress" from email headers.

Removes "From WordPress" from email headers.

When wp_mail function is used directly and From Name is not set, WP will use FROM: WordPress by default.

Parameters

$fromName
string

Returns

string
public array
# setDefaultTemplatePaths( $paths )

Sets default Twig paths in the following order: Child Theme Parent Theme Plugins

Sets default Twig paths in the following order: Child Theme Parent Theme Plugins

Parameters

$paths

Returns

array
protected
# getHJITemplatesPath( $themePath )

Methods inherited from hji\membership\abstracts\Component

getServiceContainer(), services()

Methods inherited from hji\membership\services\DependencyInjector

di()

Constants summary

string NAME
# 'HJI Membership'
string SUPPORT_EMAIL
# 'help@homejunction.com'
string SUPPORT_PHONE
# '(858) 777-9533 Ext. 4'

Properties summary

public static $file
#
public static $slug
#
public static $dir
#
public static $url
#
public $eventDispatcher
#
public $eventLogger
#
HJI WP Membership Code Reference API documentation generated by ApiGen