public static
|
|
public static
|
|
public static
|
#
check_version( )
Check WooCommerce version and run the updater is required.
Check WooCommerce version and run the updater is required.
This check is done on all requests and runs if the versions do not match.
|
public static
|
#
install_actions( )
Install actions when a update button is clicked within the admin area.
Install actions when a update button is clicked within the admin area.
This function is hooked into admin_init to affect admin only.
|
public static
|
|
public static
array
|
#
get_db_update_callbacks( )
Get list of DB update callbacks.
Get list of DB update callbacks.
Returns
array
Since
3.0.0
|
public static
|
#
update_db_version( string|null $version = null )
Update DB version to current.
Update DB version to current.
Parameters
- $version
- New WooCommerce DB version or null.
|
public static
array
|
#
cron_schedules( array $schedules )
Add more cron schedules.
Parameters
- $schedules
- List of WP scheduled cron jobs.
Returns
array
|
public static
|
#
create_pages( )
Create pages that the plugin relies on, storing page IDs in variables.
Create pages that the plugin relies on, storing page IDs in variables.
|
public static
|
#
create_terms( )
Add the default terms for WC taxonomies - product types and order statuses. Modify this at your own risk.
Add the default terms for WC taxonomies - product types and order statuses. Modify this at your own risk.
|
public static
|
#
create_roles( )
Create roles and capabilities.
Create roles and capabilities.
|
public static
|
#
remove_roles( )
Remove WooCommerce roles.
Remove WooCommerce roles.
|
public static
array
|
#
plugin_action_links( mixed $links )
Show action links on the plugin screen.
Show action links on the plugin screen.
Parameters
- $links
- Plugin Action links.
Returns
array
|
public static
array
|
#
plugin_row_meta( mixed $links, mixed $file )
Show row meta on the plugin screen.
Show row meta on the plugin screen.
Parameters
- $links
- Plugin Row Meta.
- $file
- Plugin Base file.
Returns
array
|
public static
string[]
|
#
wpmu_drop_tables( array $tables )
Uninstall tables when MU blog is deleted.
Uninstall tables when MU blog is deleted.
Parameters
- $tables
- List of tables that will be deleted by WP.
Returns
string[]
|
public static
|
#
background_installer( string $plugin_to_install_id, array $plugin_to_install )
Install a plugin from .org in the background via a cron job (used by
installer - opt in).
Install a plugin from .org in the background via a cron job (used by
installer - opt in).
Parameters
- $plugin_to_install_id
- Plugin ID.
- $plugin_to_install
- Plugin information.
Throws
Exception If unable to proceed with plugin installation.
Since
2.6.0
|
public static
|
#
theme_background_installer( string $theme_slug )
Install a theme from .org in the background via a cron job (used by installer - opt in).
Install a theme from .org in the background via a cron job (used by installer - opt in).
Parameters
Throws
Exception If unable to proceed with theme installation.
Since
3.1.0
|