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
|
@@ 141-148 (lines=8) @@
|
138 |
|
/** |
139 |
|
* Whether this container is currently viewed. |
140 |
|
**/ |
141 |
|
public function is_active() { |
142 |
|
$request_page = isset( $_GET['page'] ) ? $_GET['page'] : ''; |
143 |
|
if ( ! empty( $request_page ) && $request_page === $this->settings['file'] ) { |
144 |
|
return true; |
145 |
|
} |
146 |
|
|
147 |
|
return false; |
148 |
|
} |
149 |
|
|
150 |
|
/** |
151 |
|
* Output the container markup |