| @@ 1823-1832 (lines=10) @@ | ||
| 1820 | * @access public |
|
| 1821 | * @return string |
|
| 1822 | */ |
|
| 1823 | public function txn_page_url($query_args = array()) |
|
| 1824 | { |
|
| 1825 | if (! $this->txn_page_url) { |
|
| 1826 | $this->txn_page_url = get_permalink($this->txn_page_id); |
|
| 1827 | } |
|
| 1828 | if ($query_args) { |
|
| 1829 | return add_query_arg($query_args, $this->txn_page_url); |
|
| 1830 | } else { |
|
| 1831 | return $this->txn_page_url; |
|
| 1832 | } |
|
| 1833 | } |
|
| 1834 | ||
| 1835 | ||
| @@ 1845-1854 (lines=10) @@ | ||
| 1842 | * @access public |
|
| 1843 | * @return string |
|
| 1844 | */ |
|
| 1845 | public function thank_you_page_url($query_args = array()) |
|
| 1846 | { |
|
| 1847 | if (! $this->thank_you_page_url) { |
|
| 1848 | $this->thank_you_page_url = get_permalink($this->thank_you_page_id); |
|
| 1849 | } |
|
| 1850 | if ($query_args) { |
|
| 1851 | return add_query_arg($query_args, $this->thank_you_page_url); |
|
| 1852 | } else { |
|
| 1853 | return $this->thank_you_page_url; |
|
| 1854 | } |
|
| 1855 | } |
|
| 1856 | ||
| 1857 | ||