Clear variable in PHP. Code example open

Clear variable in PHP. Code example

Approved. Code works!
This is exactly the working code that is verified by the moderator or site administrators
 $labels = array(
            'name'              => esc_html_x( 'Brands', 'taxonomy general name', 'myplugin' ),
            'singular_name'     => esc_html_x( 'Brand', 'taxonomy singular name', 'myplugin' ),
            'search_items'      => esc_html__( 'Search Brands', 'myplugin' ),
            'all_items'         => esc_html__( 'All Brands', 'myplugin' ),
            'parent_item'       => esc_html__( 'Parent Brand', 'myplugin' ),
            'parent_item_colon' => esc_html__( 'Parent Brand:', 'myplugin' ),
            'edit_item'         => esc_html__( 'Edit Brand', 'myplugin' ),
            'update_item'       => esc_html__( 'Update Brand', 'myplugin' ),
            'add_new_item'      => esc_html__( 'Add New Brand', 'myplugin' ),
            'new_item_name'     => esc_html__( 'New Brand Name', 'myplugin' ),
            'menu_name'         => esc_html__( 'Brand', 'myplugin' ),
        );

//To clear a variable <em><strong>$labels</strong></em> use function <em>unset</em>

[php]
unset($labels)

[/php]

0

More

Leave a Reply

Your email address will not be published. Required fields are marked *

How many?: 22 + 22

lil-code© | 2022 - 2024
Go Top
Authorization
*
*
Registration
*
*
*
*
Password generation