diff --git a/functions.php b/functions.php index 25a2adeb..44f12af7 100644 --- a/functions.php +++ b/functions.php @@ -578,12 +578,6 @@ require_once __DIR__ . '/includes/functions/_helpers-query.php'; require_once __DIR__ . '/includes/functions/_setup-roles.php'; -/** - * Add forms. - */ - -require_once __DIR__ . '/includes/functions/_module-forms.php'; - /** * Add API. */ @@ -618,6 +612,12 @@ if ( is_admin() ) { require_once __DIR__ . '/includes/functions/_setup-admin.php'; + /** + * Process AJAX form submits. + */ + + require_once __DIR__ . '/includes/functions/_module-forms.php'; + } // =============================================================================