undefined add_action('wp_ajax_ng_bump_version', function() { if (!current_user_can('edit_themes')) wp_die('No access'); $style_file = get_stylesheet_directory() . '/style.css'; $content = file_get_contents($style_file); // Update the version in the file to force new enqueue // First check if we need to add wp_enqueue_styles to functions.php // Check current child theme version registration $functions_file = get_stylesheet_directory() . '/functions.php'; $fn_content = file_get_contents($functions_file); wp_send_json_success([ 'style_length' => strlen($content), 'functions_length' => strlen($fn_content), 'style_start' => substr($content, 0, 200), 'fn_start' => substr($fn_content, 0, 300) ]); }); add_action('wp_ajax_ng_read_fn', function() { if (!current_user_can('edit_themes')) wp_die('No access'); $fn = get_stylesheet_directory() . '/functions.php'; wp_send_json_success(['content' => file_get_contents($fn), 'len' => filesize($fn)]); });