| @@ -176,8 +176,22 @@ | ||
| 176 | 176 | __('The redirect could not be stored.', 'thinkrank') |
| 177 | 177 | ); |
| 178 | 178 | } |
| 179 | 179 | |
| 180 | + /** | |
| 181 | + * Fires after an object's redirect was set or cleared. | |
| 182 | + * | |
| 183 | + * A redirected object is left out of the sitemap, so the published | |
| 184 | + * files have to be rebuilt when one changes. | |
| 185 | + * | |
| 186 | + * @since 2.15.0 | |
| 187 | + * | |
| 188 | + * @param string $object_type 'post' or 'term'. | |
| 189 | + * @param int $object_id Object ID. | |
| 190 | + * @param string $url Destination; '' when the redirect was cleared. | |
| 191 | + */ | |
| 192 | + do_action('thinkrank_object_redirect_saved', $object_type, $object_id, $url); | |
| 193 | + | |
| 180 | 194 | return true; |
| 181 | 195 | } |
| 182 | 196 | |
| 183 | 197 | /** |