for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Network entity context class.
*
* @package wordpoints-hooks-api
* @since 1.0.0
*/
* Represents the network context.
* On multisite installs there are many "sites" on a "network".
class WordPoints_Entity_Context_Network extends WordPoints_Entity_Context {
public function get_current_id() {
if ( ! is_multisite() ) {
return 1;
}
return $GLOBALS['current_site']->id;
// EOF