• Resolved attosoftonline

    (@attosoftonline)


    hello

    1) is it posible that the custom fields data to be sent to admin, in notification?

    2) how can i make a custom field visible only for admin user?

    thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author N-Media

    (@nmedia)

    Hi @attosoftonline,

    1. Sorry, it is not possible unless some major changes have been made.
    2. You can add the following lines of code inside classess/plugin.class.php’s function render_comments_meta_fields

    if( ! current_user_can('administrator') ) return '';

    Thread Starter attosoftonline

    (@attosoftonline)

    Hello. Thanks for the reply.

    1) Where you add a new field, to the “data name” description, there is text as an explanation: “REQUIRED. The indentification name of this field, that you can insert into body email configuration”.

    What does this mean ?

    2) Do these additional, custom fields have an associated meta key, (or shortcode) ?

    Thanks again for clarifications.

    Plugin Author N-Media

    (@nmedia)

    Sorry, it was a typo, we have just updated it in the PRO version.

    And each field is saved as comment meta like this:

    add_comment_meta( $comment_id, $comment_meta_key, $comment_meta_val );

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom fields data in administrator notification / saved data to mysql?’ is closed to new replies.