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