PHP 클래스 SimpleHistoryRSSDropin

파일 보기 프로젝트 열기: bonny/wordpress-simple-history

공개 메소드들

메소드 설명
__construct ( $sh )
add_settings ( ) Add settings for the RSS feed + also regenerates the secret if requested
check_for_rss_feed_request ( ) Check if current request is a request for the RSS feed
get_rss_address ( ) : string Get the URL to the RSS feed
is_rss_enabled ( ) Check if RSS feed is enabled or disabled
on_can_read_single_logger ( $user_can_read_logger, $logger_instance, $user_id ) Modify capability check so all users reading rss feed (logged in or not) can read all loggers
output_rss ( ) Output RSS
settings_field_rss ( ) Output for settings field that show current RSS address
settings_field_rss_enable ( ) Output for settings field that show current RSS address
settings_field_rss_regenerate ( ) Output for settings field that regenerates the RSS adress/secret
settings_section_output ( ) Content for section intro. Leave it be, even if empty.
update_rss_secret ( ) : string Create a new RSS secret
update_rss_status ( $field ) Sanitize RSS enabled/disabled status on update settings

메소드 상세

__construct() 공개 메소드

public __construct ( $sh )

add_settings() 공개 메소드

Add settings for the RSS feed + also regenerates the secret if requested
public add_settings ( )

check_for_rss_feed_request() 공개 메소드

Check if current request is a request for the RSS feed

get_rss_address() 공개 메소드

Get the URL to the RSS feed
public get_rss_address ( ) : string
리턴 string URL

is_rss_enabled() 공개 메소드

Check if RSS feed is enabled or disabled
public is_rss_enabled ( )

on_can_read_single_logger() 공개 메소드

Modify capability check so all users reading rss feed (logged in or not) can read all loggers
public on_can_read_single_logger ( $user_can_read_logger, $logger_instance, $user_id )

output_rss() 공개 메소드

Output RSS
public output_rss ( )

settings_field_rss() 공개 메소드

Output for settings field that show current RSS address
public settings_field_rss ( )

settings_field_rss_enable() 공개 메소드

Output for settings field that show current RSS address

settings_field_rss_regenerate() 공개 메소드

Output for settings field that regenerates the RSS adress/secret

settings_section_output() 공개 메소드

Called from add_sections_setting.

update_rss_secret() 공개 메소드

Create a new RSS secret
public update_rss_secret ( ) : string
리턴 string new secret

update_rss_status() 공개 메소드

Sanitize RSS enabled/disabled status on update settings
public update_rss_status ( $field )