Okay
  Public Ticket #2106812
Need special snippet hook
Closed

Comments

  •  2
    Yannis started the conversation

    Hello,

    I need to use a special hook.

    Precisely, when I create a new post for a customer (identified by his email address), I want the title of the post to be added into the column "Dates" of a table already known by the ID.

    Can you help me to do that? I looked for snippets/hook functions in wpdatatables but I don't find the answer.

    Best regards

  •  472
    Isidora replied

    Hi Yannis,
    Thank you for your purchase.

    I suppose that you create table from SQL query. If that is true then you can use CONCAT function in MySQL. With which you can connect those properties from table in database.

    If you what to filter all cells in table ant to replace it with custom data you can use

    wpdatatables_filter_cell_val( $val, $tableId )

    This filter is applied to the value of the cell before it is returned to the front-end.

    $val is the cell value

    $tableId is the table identifier from the MySQL table (wp_wpdatatables).

    Best regards.

    Kind Regards, 

    Isidora Markovic

    wpDataTables: FAQFacebookTwitterFront-end and back-end demoDocs

    Amelia: FAQFacebookTwitter |  Amelia demo sites | Docs

    You can try our wpDataTables add-ons before purchase on these sandbox sites:

    Powerful FiltersGravity Forms Integration for wpDataTablesFormidable Forms Integration for wpDataTables