ualp_post_meta_array

Description

This filter hook allows you to change the meta data of post, page or any other post type.

If you want to remove any from default or add new meta field, this hook will allow you to change the meta fields.

For example, if you have added new post meta named ‘total_views’ and you want to add log of this field, then this filter will be used.

 

Usage

add_filter( 'ualp_post_meta_array', 'my_post_meta_array' );
function my_post_meta_array( $get_default_metakey_array ) {
    // remove thumbnail id from log
    if (($key = array_search('_thumbnail_id', $get_default_metakey_array)) !== false) {
        unset($get_default_metakey_array[$key]);
    }
    
    // add total_views post meta in log
    $get_default_metakey_array[] = 'total_views'; //total_views is meta_key
    //
    //return array
    return $get_default_metakey_array;
}
Due to high download request and stop spamming we request you to please register and enjoy all free themes, plugins and extensions with out hassels.

CLICK HERE

to register or login and start downloading free products.
you will be redirected to registration page soon....

Download is Just A Click Away!

Enter your name and email address and subscribe with us to get latest updates.

Your download is just a click away

By downloading this free product, I agree to subscribe Solwin Infotech newsletter, receive commercial information from Solwin Infotech. I can withdraw my consent at anytime. The data will be processed until the consent is withdrawn.

Customize your product

Submit this form now and we will get back to you promptly!

Request a personal demo

Submit this form now and we will get back to you promptly!