| @@ -44,18 +44,33 @@ | ||
| 44 | 44 | * @return array<string,mixed> |
| 45 | 45 | */ |
| 46 | 46 | public static function get_properties(): array |
| 47 | 47 | { |
| 48 | - return [ | |
| 48 | + $properties = parent::get_properties(); | |
| 49 | + | |
| 50 | + return array_merge($properties, [ | |
| 49 | 51 | 'location' => 'woo-builder', |
| 50 | 52 | 'support_wp_page_templates' => true, |
| 51 | 53 | 'support_site_editor' => false, |
| 52 | 54 | 'has_elements' => true, |
| 53 | - ]; | |
| 55 | + 'support_kit' => true, | |
| 56 | + 'cpt' => ['elementor_library'], | |
| 57 | + ]); | |
| 54 | 58 | } |
| 55 | -} | |
| 56 | 59 | |
| 60 | + /** | |
| 61 | + * Get the document edit URL. | |
| 62 | + * | |
| 63 | + * @return string | |
| 64 | + */ | |
| 65 | + public function get_edit_url(): string | |
| 66 | + { | |
| 67 | + $url = parent::get_edit_url(); | |
| 57 | 68 | |
| 69 | + if ($url) { | |
| 70 | + $url = add_query_arg('action', 'elementor', $url); | |
| 71 | + } | |
| 58 | 72 | |
| 59 | - | |
| 60 | - | |
| 73 | + return $url; | |
| 74 | + } | |
| 75 | +} | |
| 61 | 76 | |