Viewing 1 replies (of 1 total)
  • Plugin Author MartinCV

    (@martin7ba)

    Hi Zaheer,

    The key name starts with _ . As it is below.
    You can check this in plugin source code in /classes/admin/WHP_Post_Hide_Metabox.php

    $whp_data['_whp_hide_on_frontpage']     = ! empty( $_POST['whp_hide_on_frontpage'] ) ? true : false;
    $whp_data['_whp_hide_on_categories'] = ! empty( $_POST['whp_hide_on_categories'] ) ? true : false;
    $whp_data['_whp_hide_on_search'] = ! empty($_POST['whp_hide_on_search'] ) ? true : false;
    $whp_data['_whp_hide_on_tags'] = ! empty( $_POST['whp_hide_on_tags'] ) ? true : false;
    $whp_data['_whp_hide_on_authors'] = ! empty( $_POST['whp_hide_on_authors'] ) ? true : false;
    $whp_data['_whp_hide_in_rss_feed'] = ! empty( $_POST['whp_hide_in_rss_feed'] ) ? true : false;
    $whp_data['_whp_hide_on_blog_page'] = ! empty( $_POST['whp_hide_on_blog_page'] ) ? true : false;
    $whp_data['_whp_hide_on_date'] = ! empty( $_POST['whp_hide_on_date'] ) ? true : false;
    $whp_data['_whp_hide_on_post_navigation'] = ! empty( $_POST['whp_hide_on_post_navigation'] ) ? true : false;
Viewing 1 replies (of 1 total)

The topic ‘Programmatically update hide posts checkboxes’ is closed to new replies.