ualp_replace_key

Description

This filter hook allows you to display serialized category or term ids array field in string with its title.

For example, you have added new post meta named ‘related_post_ids’ by using filter ‘ualp_post_meta_array’. Plugin will display the lable as ‘Related post ids’. If you want to change the label, this filter hook will be very useful.

 

Usage

add_filter( 'ualp_post_meta_array', 'my_post_meta_array' );
function my_post_meta_array( $get_default_metakey_array ) {
    
    $get_default_metakey_array[] = 'related_post_ids';
    
    //return array
    return $get_default_metakey_array;
}
add_filter( 'ualp_replace_key', 'my_cat_serialized_array' );
function my_cat_serialized_array( $label ) {
    
    if($label == 'Related post ids')
        $label = 'Related Posts';
    //return label
    return $label;
}
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!