Internationalization
This plugin has support for internationalization translations. If you wish to help out by translating this plugin, you may find the .pot file in the languages folder of the plugin. Please send me your .mo translation files and I will add them to the plugin.
Languages Currently Supported:
- English (US)
- French (fr_FR)
- German (de_DE)
- Spanish (es_ES)
WordPress Hooks
This plugin is highly extendable using WordPress filter API. Below are brief descriptions of each of the actions and filters.
Filters
go-live-update-urls/database/serialized-tables
Used to change which database tables and columns are treated as serialized data when updates are run. You can add any database table and column combination which uses serialized data. By default this array will contain the options, postmeta, usermeta, termmeta, commentmeta, and sitemeta tables.
Accepts 1 argument:
- Array of <table name> => <table_column>.
go-live-update-urls/database/core-tables
Used to filter the list of the WordPress core table used when creating checkboxes on the tools screen.
Accepts 1 argument:
- List of tables.
go-live-update-urls/database/column-types
Used to filter the types of database types that will be included in the updates.
Accepts 1 argument:
- List of database types.
go-live-update-urls/database/plugin-tables
Used to filter the list of the Tables Created By Plugins used when creating checkboxes on the tools screen.
Accepts 1 argument:
- List of tables.
go-live-update-urls/updaters/repo/get-updaters
Used to register an updater handler to be used during updates.
Accepts 1 argument:
- Array of fully qualified class names.
go-live-update-urls-pro/core/old-url
Used to prefill the Old URL field with a default value.
Accepts 1 argument:
- Value of the most recently used New URL or empty if the plugin has not been run nor the general settings changed within the past day.
go-live-update-urls-pro/core/new-url
Used to prefill the New URL field with a default value.
Accepts 1 argument:
- Value of the most recently used New URL or empty if the plugin has not been run nor the general settings changed within the past day.
go-live-update-urls-pro/database/supports-skipping
Used to disable skipping of rows and force updating invalid serialized data.
More info.
Accepts 3 argument:
- Whether or not to skip this row.
bool
- Current database table.
string
- Full Database class.
Go_Live_Update_Urls\Database
go-live-update-urls/admin/admin-capability
Change the required capability to accessing the Go Live tools page and plugin functionality.
Accepts 2 arguments:
string $cap
– Required capability (defaults to ‘manage_options’).Admin $class
– Instance of theAdmin
class.
Actions
go-live-update-urls/admin-page/before-update
Fires before URL are updated from and admin tools page submission.
Accepts 3 arguments:
string
$old – The old URL.string
$new – The new URL.array $tables
– List of database tables to update
go-live-update-urls/core/before-update
Fires before URL are updated from any path.
Accepts 3 arguments:
string
$old – The old URL.string
$new – The new URL.array $tables
– List of database tables to update
go-live-update-urls/database/before-update
Fires before URL are updated in the database.
Accepts 4 arguments:
string
$old – The old URL.string
$new – The new URL.array $tables
– List of database tables to updateDatabase $database
– Full database class instance.
go-live-update-urls/database/after-update
Fires after URL are updated in the database.
Accepts 4 arguments:
string
$old – The old URL.string
$new – The new URL.array $tables
– List of database tables to updateDatabase $database
– Full database class instance.
go-live-update-urls/database/after-counting
Fires after matching URL are counted.
Accepts 4 arguments:
string
$old – The old URL.string
$new – The new URL.array $tables
– List of database tables to updateDatabase $database
– Full database class instance.
go-live-update-urls/database/before-counting
Fires before matching URL are counted.
Accepts 4 arguments:
string
$old – The old URL.string
$new – The new URL.array $tables
– List of database tables to updateDatabase $database
– Full database class instance.
go-live-update-urls-pro/admin/before-checkboxes
Fires before the checkbox for is rendered on the admin tools page.
Accepts 1 argument:
Database $database
– Full database class instance.
go-live-update-urls-pro/admin/after-checkboxes
Fires after the checkbox for is rendered on the admin tools page.
Accepts 1 argument:
Database $database
– Full database class instance.