Action
rpress_after_install
On this page
Fires on the admin side when the customers table has to be created after installation.
Runs from the admin_init callback rpress_after_install, inside the periodic database table check. It fires only when that check finds the customers table missing and has just created the customers and customer meta tables. The argument is the value of the _rpress_installed transient set during installation, or false when the transient does not exist.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$rpress_options | array|false | Options saved at install time from the _rpress_installed transient, or false if it has expired. |
Example#
function my_after_install( $rpress_options ) {
update_option( 'my_addon_install_time', time() );
}
add_action( 'rpress_after_install', 'my_after_install' );
Notes#
The transient lives for 30 seconds, so the argument is usually false except right after activation. The hook does not fire on every activation, only when the customers table was missing.
Source#
Fired from:
includes/install.php(line 301), inrpress_after_install()
See also#
Was this page helpful?
