Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter samy234

    (@samy234)

    I found a solution that works for me:

    comment out line 245 in admin/partials/settings-functions.php

    if ( ! in_array( $post_type, $excluded_post_types ) ) {
    				//$query .= "AND $wpdb->postmeta.meta_key NOT RegExp '(^[_0-9].+$)'";
    				$query .= "AND $wpdb->postmeta.meta_key NOT RegExp '(^[0-9]+$)'";
    			}

    this is great, i didn’t get this to work with my own code and now i even have a nice gui to enable/disable protected fields!

    thank you so much!

    I suggest you could add an option (show/hide protected fields on the top of the settings page for the plugin) to make this use case available for all users.

    Best

    • This reply was modified 7 years, 9 months ago by samy234.
    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Hi @samy234,

    Thanks for the investigation and suggestion! We will add it to our GitHub issue list.

    Cheers,
    Kevin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Possible to retrieve protected Meta fields?’ is closed to new replies.