redirection_monitor_types

redirection_monitor_types

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: redirection.5.4.2

apply_filters('redirection_monitor_types') is found 1 times:

  • /models/monitor.php line 10
    	private $monitor_types = array();
    	private $associated = '';
    
    	public function __construct( $options ) {
    		$this->monitor_types = apply_filters( 'redirection_monitor_types', isset( $options['monitor_types'] ) ? $options['monitor_types'] : array() );
    
    		if ( count( $this->monitor_types ) > 0 && $options['monitor_post'] > 0 ) {
    			$this->monitor_group_id = intval( $options['monitor_post'], 10 );
    			$this->associated = isset( $options['associated_redirect'] ) ? $options['associated_redirect'] : '';
    
    			// Only monitor if permalinks enabled