@@ 1766-1775 (lines=10) @@ | ||
1763 | * @access public |
|
1764 | * @return string |
|
1765 | */ |
|
1766 | public function txn_page_url($query_args = array()) |
|
1767 | { |
|
1768 | if (! $this->txn_page_url) { |
|
1769 | $this->txn_page_url = get_permalink($this->txn_page_id); |
|
1770 | } |
|
1771 | if ($query_args) { |
|
1772 | return add_query_arg($query_args, $this->txn_page_url); |
|
1773 | } else { |
|
1774 | return $this->txn_page_url; |
|
1775 | } |
|
1776 | } |
|
1777 | ||
1778 | ||
@@ 1787-1796 (lines=10) @@ | ||
1784 | * @access public |
|
1785 | * @return string |
|
1786 | */ |
|
1787 | public function thank_you_page_url($query_args = array()) |
|
1788 | { |
|
1789 | if (! $this->thank_you_page_url) { |
|
1790 | $this->thank_you_page_url = get_permalink($this->thank_you_page_id); |
|
1791 | } |
|
1792 | if ($query_args) { |
|
1793 | return add_query_arg($query_args, $this->thank_you_page_url); |
|
1794 | } else { |
|
1795 | return $this->thank_you_page_url; |
|
1796 | } |
|
1797 | } |
|
1798 | ||
1799 |