| @@ -11,10 +11,10 @@ | ||
| 11 | 11 | * Should we load the integration logic. |
| 12 | 12 | * |
| 13 | 13 | * @return bool Should we load. |
| 14 | 14 | */ |
| 15 | - function should_load() { | |
| 16 | - include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); | |
| 15 | + public function should_load() { | |
| 16 | + include_once ABSPATH . 'wp-admin/includes/plugin.php'; | |
| 17 | 17 | |
| 18 | 18 | return is_plugin_active( 'elementor/elementor.php' ); |
| 19 | 19 | } |
| 20 | 20 | |
| @@ -47,9 +47,9 @@ | ||
| 47 | 47 | if ( ! is_string( $current_meta ) ) { |
| 48 | 48 | return $metadata; |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | - return Optml_Main::instance()->manager->replace_content( $current_meta ); | |
| 51 | + return Optml_Main::instance()->manager->replace_content( $current_meta, true ); | |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | // Return original if the check does not pass |
| 55 | 55 | return $metadata; |