Modify/ Parse cell – column content via PHP hook filters
-
Hi!
First thank you for your great, I read doc on this since a day and I’m incredibly amazed by your work on this!
And with your great support, I found solutions about almosts of my questions.I still have few questions.
Can we modify the content of all cells in a column via php hook ?Concrete example1:
I have a column with URL to image file in plain text.https://mywebsite.com/image.png
I want each linked to be parsed so that it become
[shortcode attribute="https://mywebsite.com/image.png"]Click me[/shortcode]
EDIT:
Concrete example2:
Use the value of of another column to modify the values of one column.
If there is a URL Title column and a URL column then transform the column link into [shortcode attribute=”URl column”]URl Title[/shortcode]Concrete example3:
Parse comma separated value of cell
Exemple:Original cell = https://url.com/image1.gif, https://url.com/image1.gif
Modified cell = `
[shortcode attribute=”https://url.com/image1.gif”%5DClick me[/shortcode], [shortcode attribute=”https://url.com/image2.gif”%5DClick me[/shortcode]
`Is that possible ?
Can this shortcode be then interpreted by an other plugin ?
Maybe with the PHP in cells plugin and do_shortcode ?Thank you again for your support!
- The topic ‘Modify/ Parse cell – column content via PHP hook filters’ is closed to new replies.