core/Container/Term_Meta_Container.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 87-94 (lines=8) @@ | 
                                                            
                                    | 84 |  | 	 * | 
                                                            
                                    | 85 |  | 	 * @return bool True if the container is allowed to be attached | 
                                                            
                                    | 86 |  | 	 **/ | 
                                                            
                                    | 87 |  | 	public function is_valid_attach_for_request() { | 
                                                            
                                    | 88 |  | 		$request_taxonomy = isset( $_GET['taxonomy'] ) ? $_GET['taxonomy'] : ''; | 
                                                            
                                    | 89 |  | 		if ( ! empty( $request_taxonomy ) && in_array( $request_taxonomy, $this->settings['taxonomy'] ) ) { | 
                                                            
                                    | 90 |  | 			return true; | 
                                                            
                                    | 91 |  | 		} | 
                                                            
                                    | 92 |  |  | 
                                                            
                                    | 93 |  | 		return false; | 
                                                            
                                    | 94 |  | 	} | 
                                                            
                                    | 95 |  |  | 
                                                            
                                    | 96 |  | 	/** | 
                                                            
                                    | 97 |  | 	 * Check container attachment rules against object id | 
                                                                        
                 
                                                            
                    
core/Container/Theme_Options_Container.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 140-147 (lines=8) @@ | 
                                                            
                                    | 137 |  | 	/** | 
                                                            
                                    | 138 |  | 	 * Whether this container is currently viewed. | 
                                                            
                                    | 139 |  | 	 **/ | 
                                                            
                                    | 140 |  | 	public function should_activate() { | 
                                                            
                                    | 141 |  | 		$request_page = isset( $_GET['page'] ) ? $_GET['page'] : ''; | 
                                                            
                                    | 142 |  | 		if ( ! empty( $request_page ) && $request_page === $this->settings['file'] ) { | 
                                                            
                                    | 143 |  | 			return true; | 
                                                            
                                    | 144 |  | 		} | 
                                                            
                                    | 145 |  |  | 
                                                            
                                    | 146 |  | 		return false; | 
                                                            
                                    | 147 |  | 	} | 
                                                            
                                    | 148 |  |  | 
                                                            
                                    | 149 |  | 	/** | 
                                                            
                                    | 150 |  | 	 * Output the container markup |