redirection_redirect_updated
redirection_redirect_updated
Appears in: redirection.3.4, redirection.3.4.1, redirection.3.5, redirection.3.6.2, redirection.3.6.3, redirection.3.7, redirection.3.7.1, redirection.3.7.2, redirection.3.7.3, redirection.4.1, redirection.4.1.1, redirection.4.2.1, redirection.4.2.2, redirection.4.2.3, redirection.4.3.1, redirection.4.3.3, redirection.4.4, redirection.4.4.2, redirection.4.5.1, redirection.4.6.1, redirection.4.6.2, redirection.4.7, redirection.4.7.1, redirection.4.7.2, redirection.4.8, redirection.4.9, redirection.4.9.1, redirection.4.9.2, redirection.5.0, redirection.5.0.1, redirection.5.1, redirection.5.1.1, redirection.5.1.2, redirection.5.1.3, redirection.5.2.3, redirection.5.3.0, redirection.5.3.10, redirection.5.3.2, redirection.5.3.3, redirection.5.3.4, redirection.5.3.5, redirection.5.3.6, redirection.5.3.9, redirection.5.4.1, redirection.5.4.2, redirection.5.5.0
Hook Type: action
See hook in action
Displaying hooks found in version: redirection.5.5.0do_action('redirection_redirect_updated') is found 2 times:
- /models/redirect/redirect.php line 507
Red_Module::flush( $data['group_id'] ); $redirect = self::get_by_id( $wpdb->insert_id ); if ( $redirect ) { do_action( 'redirection_redirect_updated', $wpdb->insert_id, $redirect ); return $redirect; } return new WP_Error( 'redirect_create_failed', 'Unable to get newly added redirect' ); }
- /models/redirect/redirect.php line 547
} $result = $wpdb->update( $wpdb->prefix . 'redirection_items', $data, array( 'id' => $this->id ) ); if ( $result !== false ) { do_action( 'redirection_redirect_updated', $this, self::get_by_id( $this->id ) ); $this->load_from_data( $data ); Red_Module::flush( $this->group_id ); if ( $old_group !== $this->group_id && $old_group !== false ) { Red_Module::flush( $old_group );