challenge
1 year ago
css
1 week ago
img
1 year ago
js
1 month ago
menu
1 month ago
partials
2 weeks ago
rest-api
1 week ago
scss
1 year ago
settings
1 week ago
uninstall
1 year ago
wpchill
1 month ago
admin-notices.php
6 months ago
admin.php
1 month ago
class-strong-testimonials-addons.php
1 month ago
class-strong-testimonials-admin-category-list.php
1 year ago
class-strong-testimonials-admin-list.php
1 year ago
class-strong-testimonials-admin-scripts.php
1 month ago
class-strong-testimonials-admin.php
1 month ago
class-strong-testimonials-debug.php
5 months ago
class-strong-testimonials-exporter.php
1 year ago
class-strong-testimonials-help.php
1 year ago
class-strong-testimonials-helper.php
1 month ago
class-strong-testimonials-list-table.php
1 year ago
class-strong-testimonials-lite-vs-pro-page.php
1 month ago
class-strong-testimonials-post-editor.php
7 months ago
class-strong-testimonials-review.php
1 year ago
class-strong-testimonials-updater.php
1 month ago
class-strong-testimonials-upsell.php
1 week ago
class-strong-views-list-table.php
1 month ago
class-walker-strong-category-checklist.php
1 year ago
class-walker-strong-form-category-checklist.php
1 year ago
class-wpmtst-onboarding.php
1 year ago
compat.php
1 year ago
custom-fields-ajax.php
1 year ago
custom-fields.php
1 week ago
form-preview.php
1 year ago
view-list-order.php
1 year ago
views-ajax.php
1 month ago
views-validate.php
1 year ago
views.php
1 month ago
class-strong-testimonials-addons.php
47 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Class Strong_Testimonials_Addons |
| 4 | * |
| 5 | * @since 2.38 |
| 6 | */ |
| 7 | class Strong_Testimonials_Addons { |
| 8 | |
| 9 | private $addons = array(); |
| 10 | |
| 11 | public function __construct() { |
| 12 | add_filter( 'wpmtst_submenu_pages', array( $this, 'add_submenu' ) ); |
| 13 | } |
| 14 | |
| 15 | /** |
| 16 | * Add submenu page. |
| 17 | * |
| 18 | * @param $pages |
| 19 | * |
| 20 | * @return mixed |
| 21 | */ |
| 22 | public function add_submenu( $pages ) { |
| 23 | $pages[91] = $this->get_submenu(); |
| 24 | return $pages; |
| 25 | } |
| 26 | |
| 27 | /** |
| 28 | * Return submenu page parameters. |
| 29 | * |
| 30 | * @return array |
| 31 | */ |
| 32 | public function get_submenu() { |
| 33 | return array( |
| 34 | 'page_title' => esc_html__( 'Extensions', 'strong-testimonials' ), |
| 35 | 'menu_title' => esc_html__( 'Extensions', 'strong-testimonials' ), |
| 36 | 'capability' => 'strong_testimonials_options', |
| 37 | 'menu_slug' => 'strong-testimonials-extensions', |
| 38 | 'function' => array( $this, 'add_extensions_react_root' ), |
| 39 | ); |
| 40 | } |
| 41 | public function add_extensions_react_root() { |
| 42 | echo '<div class="strong-testimonial-addons-container" id="strong-testimonial-addons"></div>'; |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | new Strong_Testimonials_Addons(); |
| 47 |