Property | Type | Description | |
---|---|---|---|
$option_host | boolean | True if EP_HOST has been set via option or false. |
Method | Description | |
---|---|---|
factory ( ) : EP_Config | Get a singleton instance of the class | |
get_host ( ) : string | boolean | Retrieve the appropriate host. Will default to EP_HOST constant if it exists | |
get_index_name ( integer $blog_id = null ) : string | Generates the index name for the current site | |
get_indexable_post_status ( ) : array | Return indexable post_status for the current site | |
get_indexable_post_types ( ) : mixed | void | Returns indexable post types for the current site | |
get_network_alias ( ) : string | Generate network index name for alias | |
host_by_option ( ) : boolean | Determine if host is set in options rather than a constant | |
is_indexing ( ) : boolean | Determine if ElasticPress is in the middle of an index | |
is_indexing_wpcli ( ) : boolean | Check if wpcli indexing is occuring | |
is_network ( string $plugin ) : boolean | Whether plugin is network activated |
public static factory ( ) : EP_Config | ||
return | EP_Config |
public get_index_name ( integer $blog_id = null ) : string | ||
$blog_id | integer | (optional) Blog ID. Defaults to current blog. |
return | string |
public get_indexable_post_status ( ) : array | ||
return | array |
public get_indexable_post_types ( ) : mixed | void | ||
return | mixed | void |
public get_network_alias ( ) : string | ||
return | string |
public host_by_option ( ) : boolean | ||
return | boolean |
public is_indexing ( ) : boolean | ||
return | boolean |
public is_indexing_wpcli ( ) : boolean | ||
return | boolean |
public is_network ( string $plugin ) : boolean | ||
$plugin | string | the plugin base name. |
return | boolean | True if network activated or false |
public bool $option_host | ||
return | boolean |