\MainWP\ChildMainWP_WordPress_SEO

Class MainWP_WordPress_SEO

MainWP WordPress SEO Extension handler.

Summary

Methods
Properties
Constants
instance()
__construct()
child_deactivation()
action()
import_settings()
import_seo_settings()
parse_column_score()
parse_column_score_readability()
$instance
No constants found
No protected methods found
No protected properties found
N/A
render_score_indicator()
No private properties found
N/A

Properties

$instance

$instance : mixed

Public static variable to hold the single instance of the class.

Type

mixed — Default null

Methods

instance()

instance() : mixed

Method instance()

Create a public static instance.

Returns

mixed —

Class instance.

__construct()

__construct() 

MainWP_WordPress_SEO constructor.

Run any time class is called.

child_deactivation()

child_deactivation() 

Empty options upon MainWP Child plugin deactivation.

action()

action() 

Fire off certain Yoast SEP plugin actions.

import_settings()

import_settings() 

Import the Yoast SEO plugin settings.

Throws

\Exception

Error message.

import_seo_settings()

import_seo_settings(string  $file) : boolean

Import SEO settings.

Parameters

string $file

settings.ini file to import.

Throws

\Exception

Error message.

Returns

boolean —

Return true on success, false on failure.

parse_column_score()

parse_column_score(integer  $post_id) : string

Parse the column score.

Parameters

integer $post_id

Post ID.

Returns

string —

SEO Score.

parse_column_score_readability()

parse_column_score_readability(integer  $post_id) : string

Parse readability score.

Parameters

integer $post_id

Post ID.

Returns

string —

Redability score.

render_score_indicator()

render_score_indicator(string  $rank, string  $title = '') : string

Render score rank.

Parameters

string $rank

SEO Rank Score.

string $title

Rank title.

Returns

string —

Return SEO Score html.