WPSEO_Admin_Banner_Spot::set_description PHP Method

set_description() public method

Sets the description
public set_description ( string $description )
$description string The description.
    public function set_description($description)
    {
        $this->description = $description;
    }

Usage Example

コード例 #1
0
 /**
  * Returns the remove banner spot.
  *
  * @return WPSEO_Admin_Banner_Spot
  */
 protected function get_remove_banner_spot()
 {
     $remove_banner_spot = new WPSEO_Admin_Banner_Spot(__('Remove these ads?', 'wordpress-seo'));
     $remove_banner_spot->set_description('<a target="_blank" href="https://yoa.st/jy">' . sprintf(__('Upgrade to %1$s &raquo;', 'wordpress-seo'), 'Yoast SEO Premium') . '</a>');
     return $remove_banner_spot;
 }