| | 1176 | * Determines whether the current request is a WordPress autosave request. |
| | 1177 | * |
| | 1178 | * @since |
| | 1179 | * |
| | 1180 | * @return bool True if it's a WordPress autosave request, false otherwise. |
| | 1181 | */ |
| | 1182 | function wp_doing_autosave() { |
| | 1183 | /** |
| | 1184 | * Filters whether the current request is a WordPress autosave request. |
| | 1185 | * |
| | 1186 | * @since |
| | 1187 | * |
| | 1188 | * @param bool wp_doing_autosave Whether the current request is a WordPress autosave request. |
| | 1189 | */ |
| | 1190 | return apply_filters( 'wp_doing_autosave', defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ); |
| | 1191 | } |
| | 1192 | |
| | 1193 | /** |