core/Container/Post_Meta_Container.php 1 location
|
@@ 428-435 (lines=8) @@
|
425 |
|
* |
426 |
|
* @param string $name |
427 |
|
**/ |
428 |
|
public function drop_unique_field_name( $name ) { |
429 |
|
foreach ( $this->settings['post_type'] as $post_type ) { |
430 |
|
$index = array_search( $name, self::$registered_field_names[ $post_type ] ); |
431 |
|
if ( $index !== false ) { |
432 |
|
unset( self::$registered_field_names[ $post_type ][ $index ] ); |
433 |
|
} |
434 |
|
} |
435 |
|
} |
436 |
|
|
437 |
|
/** |
438 |
|
* Show the container only on pages whose parent is referenced by $parent_page_path. |
core/Container/Term_Meta_Container.php 1 location
|
@@ 176-183 (lines=8) @@
|
173 |
|
* |
174 |
|
* @param string $name |
175 |
|
**/ |
176 |
|
public function drop_unique_field_name( $name ) { |
177 |
|
foreach ( $this->settings['taxonomy'] as $taxonomy ) { |
178 |
|
$index = array_search( $name, self::$registered_field_names[ $taxonomy ] ); |
179 |
|
if ( $index !== false ) { |
180 |
|
unset( self::$registered_field_names[ $taxonomy ][ $index ] ); |
181 |
|
} |
182 |
|
} |
183 |
|
} |
184 |
|
|
185 |
|
/** |
186 |
|
* Show the container only on terms from the specified taxonomies. |