includes(); } public function load_textdomain() { load_theme_textdomain($this->theme, get_template_directory() . '/languages'); } public function pre_insert_post($post, \WP_REST_Request $request) { $body = $request->get_body(); if ($body) { $body = json_decode($body); if (isset($body->menu_order)) { $post->menu_order = $body->menu_order; } } return $post; } public function includes() { require_once get_template_directory() . '/inc/constants.php'; require_once get_template_directory() . '/inc/traits/init.php';