We are hiring

ualp_post_serialized_array

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_cat_ids’ by using filter ‘ualp_post_meta_array’. related_cat_ids field contains array of category ids. WordPress will store array in serialized format. When you want to display serialized category ids array field in valid format, 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 ) {
    
    // add connected_post_ids post meta in log
    $get_default_metakey_array[] = 'related_post_ids';
    
    //return array
    return $get_default_metakey_array;
}

add_filter( 'ualp_post_serialized_array', 'my_post_serialized_array' );

function my_post_serialized_array( $serialized_array ) {
    
    // display total_emails post meta in proper format
    $serialized_array[] = 'related_post_ids';
    
    //return array
    return $serialized_array;
}

Get Connected

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....
Avartan Slider Plugin v1.7 is available on Codecanyon now!
Avartan Slider – Premium WordPress Plugin
Thanks for signing up. You must confirm your email address before we can send you. Please check your email and follow the instructions.
We respect your privacy. Your information is safe and will never be shared.
Don't miss out. Subscribe today.
×
×