Skip to content

Conversation

@mrrobot47
Copy link
Member

@mrrobot47 mrrobot47 commented Oct 10, 2018

Closes #147

Signed-off-by: Riddhesh Sanghvi riddheshsanghvi96@gmail.com

Signed-off-by: Riddhesh Sanghvi <riddheshsanghvi96@gmail.com>
}
}

\EE::do_hook( 'site_cleanup', $site_url );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mrrobot47 Please add some comment above this hook. Like: What it can be use for and when and what's $site_url is use for.

Copy link
Member Author

@mrrobot47 mrrobot47 Oct 11, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added. Please check if this much info is sufficient.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops, I just meant the short description. What this hook is about.

	/**
	 * Execute before site db data cleanup and after site services cleanup.
	 * Note: This can be use to cleanup site data added by any package command.
	 *
	 * @param string $site_url Url of site which data is cleanup.
	 */

Add this.

Ps.: You can check hook commenting in WP for ref https://github.com/WordPress/WordPress/blob/8efab48edeb348db9399410b5ede28785ad25357/wp-admin/admin-header.php

Signed-off-by: Riddhesh Sanghvi <riddheshsanghvi96@gmail.com>
Signed-off-by: Riddhesh Sanghvi <riddheshsanghvi96@gmail.com>
@mrrobot47 mrrobot47 force-pushed the update/site_cleanup branch from 81f4150 to 0aa2261 Compare October 15, 2018 14:35
@rahulsprajapati rahulsprajapati merged commit 4fb7cb0 into EasyEngine:develop Oct 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants