This contains names, variables, handles, constants, etc that we've changed:
- PHP Constants
WPINTERACTIONS_BUILD -> INTERACT_BUILD WPINTERACTIONS_VERSION -> INTERACT_VERSION WPINTERACTIONS_FILE -> INTERACT_FILE
look for exact matches in .php files
- PHP & JS Hooks
search and replace regex:
((action|filter|filters)\(\s?['"])wpi([.\/_])
replace with:
$1interact$3
- Script & style handles:
search & replace regex:
((style|script)\(\t*\n*\s*['"])wpi(-)
replace with:
$1interact$3
- Rest API endpoints:
search & replace:
wpi/v1
replace with:
interact/v1
- PHP classes:
search & replace regex (case sensitive):
WPI_([A-Z][a-z])
replace with:
Interact_$1
- PHP function names:
search & replace regex (case sensitive):
wpi_([^\(]+\()
replace with:
interact_$1
and
(\(\s*['"])wpi_
replace with:
$1interact_
and manually adjust some function names, search for "wpi"
- PHP variables:
search & replace regex (case sensitive):
\$wpi_
replace with:
$interact_
- Adjust JS alias
search & replace:
~wpi
replace with:
~interact
-
Rename openWPISidebar, do this manually
-
WPIRunner and other JS classes
search & replace regex (case sensitive):
WPI(\w)
replace with:
Interact$1
- JS events
search & replace regex (case sensitive):
([^\w])wpi/
replace with:
$1interact/