PHP Class WPCOM_Legacy_Redirector_CLI, vip-mu-plugins-public

Inheritance: extends WP_CLI_Command
显示文件 Open project: Automattic/vip-mu-plugins-public

Public Methods

Method Description
import_from_csv ( $args, $assoc_args ) Bulk import redirects from a CSV file matching the following structure:
import_from_meta ( $args, $assoc_args ) Bulk import redirects from URLs stored as meta values for posts.
insert_redirect ( $args, $assoc_args ) Insert a single redirect

Method Details

import_from_csv() public method

redirect_from_path,(redirect_to_post_id|redirect_to_path|redirect_to_url)
public import_from_csv ( $args, $assoc_args )

import_from_meta() public method

Bulk import redirects from URLs stored as meta values for posts.
public import_from_meta ( $args, $assoc_args )

insert_redirect() public method

Insert a single redirect
public insert_redirect ( $args, $assoc_args )