RAH Code (dev)

My Website

Plugin Reference


The function checks if the last completed order for a logged-in user in WooCommerce was made within the last year.

Returns: A boolean value. It returns true if the user has placed a completed order within the last year, and false otherwise.

payPerViewShortcodeContent($atts, $content = null)

The function checks the state of the last user’s order and returns the provided content if the state matches the attribute value, otherwise it returns an empty string.


Returns: The value of the $content variable if the ['state'] is equal to the order state. Otherwise, it returns an empty string.