redirection_monitor_created
redirection_monitor_created
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
Displaying hooks found in version: redirection.5.5.0do_action('redirection_monitor_created') is found 1 times:
- /models/monitor.php line 133
// Create a new redirect for this post $new_item = Red_Item::create( $data ); if ( ! is_wp_error( $new_item ) ) { do_action( 'redirection_monitor_created', $new_item, $before, $post_id ); if ( ! empty( $this->associated ) ) { // Create an associated redirect for this post $data['url'] = trailingslashit( $data['url'] ) . ltrim( $this->associated, '/' ); $data['action_data'] = array( 'url' => trailingslashit( $data['action_data']['url'] ) . ltrim( $this->associated, '/' ) ); Red_Item::create( $data );