/** * Detects a Shopp post type editor. * * @since 1.4 * * @return bool True if the admin page is a Shopp post-type editor, false otherwise. **/ public static function posteditor() { return ShoppProduct::posttype() == ShoppFlow()->request('post_type') && 'edit' == ShoppFlow()->request('action'); }
function ShoppFlowController() { if (!($Flow = ShoppFlow()) || !$Flow->controller()) { return false; } return $Flow->controller(); }