[Support request] Add custom fields to my output

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Add custom fields to my output

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #19214
    Francesco Leone
    Participant

    Hi!
    I would like to output also my custom fields values into the grid i display. How can i do that ?
    thanks

    #19216
    Francesco Leone
    Participant

    I have found the answer by myself, but now i don’t understand how can I avoid the hook to be displayed in every post list.
    thank you

    #19228
    Tom
    Keymaster

    Hi there,

    You can use the $settings parameter in the function.

    For example:

    add_action( 'hook_name', function( $settings ) {
        if ( 123 === $settings['list_id'] ) {
            // Everything in here will show up on the "123" list ID.
        }
    } );
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.