PHP Class VideoPress_CLI, jetpack

Inheritance: extends WP_CLI_Command
Show file Open project: automattic/jetpack

Public Methods

Method Description
activate_cron ( $args ) Actives the given cron job
cleanup_videos ( ) Manually runs the job to cleanup videos from the media library that failed during the upload process.
cron_status ( $args ) Checks for the current status of a cron job.
deactivate_cron ( $args ) Actives the given cron job
import ( $args ) Import a VideoPress Video
list_crons ( ) List out all of the crons that can be run.

Method Details

activate_cron() public method

## OPTIONS : The name of the cron job to check ## EXAMPLES wp videopress activate_cron cleanup
public activate_cron ( $args )

cleanup_videos() public method

## EXAMPLES wp videopress cleanup_videos
public cleanup_videos ( )

cron_status() public method

## OPTIONS : The name of the cron job to check ## EXAMPLES wp videopress cron_status cleanup
public cron_status ( $args )

deactivate_cron() public method

## OPTIONS : The name of the cron job to check ## EXAMPLES wp videopress deactivate_cron cleanup
public deactivate_cron ( $args )

import() public method

## OPTIONS : Import the video with the specified guid ## EXAMPLES wp videopress import kUJmAcSf
public import ( $args )

list_crons() public method

## EXAMPLES wp videopress list_crons
public list_crons ( )