We are hiring

ualp_post_primary_array

Description

This filter hook allows you to change the primary data of post, page or any other post type. The default post data are post_title, post_name, post_content, post_status, menu_order, post_date, post_date_gmt, post_excerpt, comment_status, ping_status, post_parent, post_author.

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

 

Usage

add_filter( 'ualp_post_primary_array', 'my_primary_array' );

function my_primary_array( $get_dafault_post_key_array ) {

    // remove post_date_gmt from log
    if (($key = array_search('post_date_gmt', $get_dafault_post_key_array)) !== false) {
        unset($get_dafault_post_key_array[$key]);
    }

    // add post_modified in log
    $get_dafault_post_key_array[] = 'post_modified';

    //return array
    return $get_dafault_post_key_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....