| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Radiustheme Variation Gallery support. |
| 5 |
* |
| 6 |
* @package RadiusTheme\SB |
| 7 |
*/ |
| 8 |
|
| 9 |
namespace RadiusTheme\SB\Controllers\PluginsSupport; |
| 10 |
|
| 11 |
use RadiusTheme\SB\Helpers\ElementorDataMap; |
| 12 |
use RadiusTheme\SB\Helpers\Fns; |
| 13 |
use RadiusTheme\SB\Modules\WishList\WishlistFns; |
| 14 |
use RadiusTheme\SB\Traits\SingletonTrait; |
| 15 |
use RadiusTheme\SB\Helpers\BuilderFns; |
| 16 |
|
| 17 |
// Do not allow directly accessing this file. |
| 18 |
if ( ! defined( 'ABSPATH' ) ) { |
| 19 |
exit( 'This script cannot be accessed directly.' ); |
| 20 |
} |
| 21 |
|
| 22 |
/** |
| 23 |
* Product Description class |
| 24 |
*/ |
| 25 |
class WooAddressBook { |
| 26 |
/** |
| 27 |
* SingletonTrait. |
| 28 |
*/ |
| 29 |
use SingletonTrait; |
| 30 |
|
| 31 |
/** |
| 32 |
* Construct function |
| 33 |
*/ |
| 34 |
private function __construct() { |
| 35 |
add_shortcode( 'rtsb_woo_address_book', [ $this, 'woo_address_book' ] ); |
| 36 |
} |
| 37 |
|
| 38 |
/** |
| 39 |
* @param $atts |
| 40 |
* @param $content |
| 41 |
* |
| 42 |
* @return void |
| 43 |
*/ |
| 44 |
public function woo_address_book( $atts, $content = '' ) { |
| 45 |
ob_start(); |
| 46 |
$address = \WC_Address_Book::get_instance(); |
| 47 |
$address->wc_address_book_page( '' ); |
| 48 |
return ob_get_clean(); |
| 49 |
} |
| 50 |
|
| 51 |
} |
| 52 |
|