• Resolved mattce

    (@mattce)


    Hi, just a quick question: Is there a filter available for replacing the output on the frontend?
    Some of our authors have added html checkmark symbols and I would like to replace them with some proper svg icons automatically for each table, is this possible with an inbuilt filter somehow or do I need to filter the whole content via the_content?

    Thanks a lot!

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

    (@tobiasbg)

    Hi!

    Thanks for your post and sorry for the trouble!

    You can use the tablepress_cell_content filter hook (which runs for each single cell) or tablepress_table_output (which runs for the full HTML table output) for this.
    For their definitions and the passed parameters, please see the source files directly.

    Best wishes,
    Tobias

    Thread Starter mattce

    (@mattce)

    Great, this is what I am looking for, thanks!

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi @mattce,

    no problem, you are very welcome! ?? Good to hear that this helped!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress in the plugin directory. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Filter to replace specific cell content’ is closed to new replies.