PHP Class Admin_Apple_Post_Sync, apple-news

Since: 0.4.0
Show file Open project: alleyinteractive/apple-news Class Usage Examples

Public Methods

Method Description
__construct ( $settings = null ) Constructor.
do_delete ( integer $id ) When a post is deleted, remove it from Apple News.
do_publish ( integer $id, WP_Post $post ) When a post is published, or a published post updated, trigger this function.

Method Details

__construct() public method

Constructor.
public __construct ( $settings = null )

do_delete() public method

When a post is deleted, remove it from Apple News.
Since: 0.4.0
public do_delete ( integer $id )
$id integer

do_publish() public method

When a post is published, or a published post updated, trigger this function.
Since: 0.4.0
public do_publish ( integer $id, WP_Post $post )
$id integer
$post WP_Post