redirection_monitor_trashed_data

redirection_monitor_trashed_data

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: redirection.5.7.3

apply_filters('redirection_monitor_trashed_data') is found 1 times:

  • /models/monitor.php line 151
    		 *
    		 * @param array $data    The redirect data to be created.
    		 * @param int   $post_id The ID of the trashed post.
    		 */
    		$data = apply_filters( 'redirection_monitor_trashed_data', $data, $post_id );
    
    		// Create a new redirect for this post, but only if not draft
    		if ( $data['url'] !== null && $data['url'] !== false && $data['url'] !== '/' ) {
    			$new_item = Red_Item::create( $data );
    
    			if ( ! is_wp_error( $new_item ) ) {