Detect last shortcode in page

Is there a way to detect last shortcode (of same type) in the page/post? And do some action than?

I found this question to detect same shortcode is used more than once, but this doesnt detect the last occurrence:

how to check if a shortcode is used more than one time in the same post

Read more here:: Detect last shortcode in page

Leave a Reply

Your email address will not be published. Required fields are marked *