PHP Class Twitter\WordPress\Content\Buttons\Tweet

Since: 1.0.0
Show file Open project: twitter/wordpress

Public Methods

Method Description
contentFilter ( string $content ) : string Filter the_content, possibly adding Tweet button(s)

Protected Methods

Method Description
getOption ( ) : array Get the stored site option for Tweet button content

Method Details

contentFilter() public static method

Filter the_content, possibly adding Tweet button(s)
Since: 1.0.0
public static contentFilter ( string $content ) : string
$content string content of the current post
return string $content content of the current post, possibly with Tweet button markup added

getOption() protected static method

Get the stored site option for Tweet button content
Since: 1.0.0
protected static getOption ( ) : array
return array stored options { @type string option name @type string option value }