PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.9
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.9
4.4.9 4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 All 140 releases
← All changes | inc/ExternalPlugin/YoastSeo/LPYoastSeo.php +29 -29 4.3.9 → 4.4.9 View file →
@@ -1,29 +1,29 @@
1 -<?php
2 -/**
3 - * Class LPYoastSeo
4 - *
5 - * Compatible with wordpress.org/plugins/wordpress-seo/
6 - * @since 4.2.6.4
7 - * @version 1.0.0
8 - */
9 -namespace LearnPress\ExternalPlugin\YoastSeo;
10 -
11 -use LearnPress\Helpers\Singleton;
12 -use LP_Helper;
13 -use LP_Page_Controller;
14 -
15 -class LPYoastSeo {
16 - use Singleton;
17 -
18 - public function init() {
19 - add_filter( 'wpseo_opengraph_url', [ $this, 'opengraph_url' ] );
20 - }
21 -
22 - public function opengraph_url( $open_graph_url ) {
23 - if ( LP_Page_Controller::is_page_instructor() ) {
24 - $open_graph_url = LP_Helper::getUrlCurrent();
25 - }
26 -
27 - return $open_graph_url;
28 - }
29 -}
1 +<?php
2 +/**
3 + * Class LPYoastSeo
4 + *
5 + * Compatible with wordpress.org/plugins/wordpress-seo/
6 + * @since 4.2.6.4
7 + * @version 1.0.0
8 + */
9 +namespace LearnPress\ExternalPlugin\YoastSeo;
10 +
11 +use LearnPress\Helpers\Singleton;
12 +use LP_Helper;
13 +use LP_Page_Controller;
14 +
15 +class LPYoastSeo {
16 + use Singleton;
17 +
18 + public function init() {
19 + add_filter( 'wpseo_opengraph_url', [ $this, 'opengraph_url' ] );
20 + }
21 +
22 + public function opengraph_url( $open_graph_url ) {
23 + if ( LP_Page_Controller::is_page_instructor() ) {
24 + $open_graph_url = LP_Helper::getUrlCurrent();
25 + }
26 +
27 + return $open_graph_url;
28 + }
29 +}