By default WordPress doesn’t load admin classes/function definitions in the front end of the site. You need to explicitly require the files.
As far as I remember requiring wp-admin/includes/admin.php
would get you most of typical stuff.
By default WordPress doesn’t load admin classes/function definitions in the front end of the site. You need to explicitly require the files.
As far as I remember requiring wp-admin/includes/admin.php
would get you most of typical stuff.