Completed
Pull Request — master (#1213)
by Naveen
04:19 queued 01:36
created
src/includes/class-wordlift.php 2 patches
Spacing   +340 added lines, -340 removed lines patch added patch discarded remove patch
@@ -755,7 +755,7 @@  discard block
 block discarded – undo
755 755
 		$this->define_public_hooks();
756 756
 
757 757
 		// If we're in `WP_CLI` load the related files.
758
-		if ( class_exists( 'WP_CLI' ) ) {
758
+		if (class_exists('WP_CLI')) {
759 759
 			$this->load_cli_dependencies();
760 760
 		}
761 761
 
@@ -796,381 +796,381 @@  discard block
 block discarded – undo
796 796
 		 * The class responsible for orchestrating the actions and filters of the
797 797
 		 * core plugin.
798 798
 		 */
799
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-loader.php';
799
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-loader.php';
800 800
 
801 801
 		// The class responsible for plugin uninstall.
802
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-deactivator-feedback.php';
802
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-deactivator-feedback.php';
803 803
 
804 804
 		/**
805 805
 		 * The class responsible for defining internationalization functionality
806 806
 		 * of the plugin.
807 807
 		 */
808
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-i18n.php';
808
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-i18n.php';
809 809
 
810 810
 		/**
811 811
 		 * WordLift's supported languages.
812 812
 		 */
813
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-languages.php';
813
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-languages.php';
814 814
 
815 815
 		/**
816 816
 		 * WordLift's supported countries.
817 817
 		 */
818
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-countries.php';
818
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-countries.php';
819 819
 
820 820
 		/**
821 821
 		 * Provide support functions to sanitize data.
822 822
 		 */
823
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-sanitizer.php';
823
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-sanitizer.php';
824 824
 
825 825
 		/** Services. */
826
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-log-service.php';
827
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-http-api.php';
828
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-redirect-service.php';
829
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-configuration-service.php';
830
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-post-type-service.php';
831
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-type-service.php';
832
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-link-service.php';
833
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-linked-data-service.php';
834
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-relation-service.php';
835
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-image-service.php';
826
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-log-service.php';
827
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-http-api.php';
828
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-redirect-service.php';
829
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-configuration-service.php';
830
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-entity-post-type-service.php';
831
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-entity-type-service.php';
832
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-entity-link-service.php';
833
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-linked-data-service.php';
834
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-relation-service.php';
835
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-image-service.php';
836 836
 
837 837
 		/**
838 838
 		 * The Query builder.
839 839
 		 */
840
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-query-builder.php';
840
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-query-builder.php';
841 841
 
842 842
 		/**
843 843
 		 * The Schema service.
844 844
 		 */
845
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-schema-service.php';
845
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-schema-service.php';
846 846
 
847 847
 		/**
848 848
 		 * The schema:url property service.
849 849
 		 */
850
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-property-service.php';
851
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-schema-url-property-service.php';
850
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-property-service.php';
851
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-schema-url-property-service.php';
852 852
 
853 853
 		/**
854 854
 		 * The UI service.
855 855
 		 */
856
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-ui-service.php';
856
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-ui-service.php';
857 857
 
858 858
 		/**
859 859
 		 * The Thumbnail service.
860 860
 		 */
861
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-thumbnail-service.php';
861
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-thumbnail-service.php';
862 862
 
863 863
 		/**
864 864
 		 * The Entity Types Taxonomy service.
865 865
 		 */
866
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-type-taxonomy-service.php';
866
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-entity-type-taxonomy-service.php';
867 867
 
868 868
 		/**
869 869
 		 * The Entity service.
870 870
 		 */
871
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-uri-service.php';
872
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-service.php';
871
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-entity-uri-service.php';
872
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-entity-service.php';
873 873
 
874 874
 		// Add the entity rating service.
875
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-rating-service.php';
875
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-rating-service.php';
876 876
 
877 877
 		/**
878 878
 		 * The User service.
879 879
 		 */
880
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-user-service.php';
880
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-user-service.php';
881 881
 
882 882
 		/**
883 883
 		 * The Timeline service.
884 884
 		 */
885
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-timeline-service.php';
885
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-timeline-service.php';
886 886
 
887 887
 		/**
888 888
 		 * The Topic Taxonomy service.
889 889
 		 */
890
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-topic-taxonomy-service.php';
890
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-topic-taxonomy-service.php';
891 891
 
892 892
 		/**
893 893
 		 * The SPARQL service.
894 894
 		 */
895
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-sparql-service.php';
895
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-sparql-service.php';
896 896
 
897 897
 		/**
898 898
 		 * The WordLift import service.
899 899
 		 */
900
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-import-service.php';
900
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-import-service.php';
901 901
 
902 902
 		/**
903 903
 		 * The WordLift URI service.
904 904
 		 */
905
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-uri-service.php';
906
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-property-factory.php';
907
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-sample-data-service.php';
905
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-uri-service.php';
906
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-property-factory.php';
907
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-sample-data-service.php';
908 908
 
909 909
 		/**
910 910
 		 * The WordLift rebuild service, used to rebuild the remote dataset using the local data.
911 911
 		 */
912
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/rebuild/class-wordlift-listable.php';
913
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/rebuild/class-wordlift-rebuild-service.php';
914
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/rebuild/class-wordlift-reference-rebuild-service.php';
915
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/rebuild/class-wordlift-relation-rebuild-service.php';
916
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/rebuild/class-wordlift-relation-rebuild-adapter.php';
912
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/rebuild/class-wordlift-listable.php';
913
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/rebuild/class-wordlift-rebuild-service.php';
914
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/rebuild/class-wordlift-reference-rebuild-service.php';
915
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/rebuild/class-wordlift-relation-rebuild-service.php';
916
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/rebuild/class-wordlift-relation-rebuild-adapter.php';
917 917
 
918
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/properties/class-wordlift-property-getter-factory.php';
919
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-attachment-service.php';
918
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/properties/class-wordlift-property-getter-factory.php';
919
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-attachment-service.php';
920 920
 
921 921
 		/**
922 922
 		 * Load the converters.
923 923
 		 */
924
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/intf-wordlift-post-converter.php';
925
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-abstract-post-to-jsonld-converter.php';
926
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-postid-to-jsonld-converter.php';
927
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-post-to-jsonld-converter.php';
928
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-post-to-jsonld-converter.php';
929
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-jsonld-website-converter.php';
924
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/intf-wordlift-post-converter.php';
925
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-abstract-post-to-jsonld-converter.php';
926
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-postid-to-jsonld-converter.php';
927
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-entity-post-to-jsonld-converter.php';
928
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-post-to-jsonld-converter.php';
929
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-jsonld-website-converter.php';
930 930
 
931 931
 		/**
932 932
 		 * Load cache-related files.
933 933
 		 */
934
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/cache/require.php';
934
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/cache/require.php';
935 935
 
936 936
 		/**
937 937
 		 * Load the content filter.
938 938
 		 */
939
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-content-filter-service.php';
939
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-content-filter-service.php';
940 940
 
941 941
 		/*
942 942
 		 * Load the excerpt helper.
943 943
 		 */
944
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-post-excerpt-helper.php';
944
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-post-excerpt-helper.php';
945 945
 
946 946
 		/**
947 947
 		 * Load the JSON-LD service to publish entities using JSON-LD.s
948 948
 		 *
949 949
 		 * @since 3.8.0
950 950
 		 */
951
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-jsonld-service.php';
951
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-jsonld-service.php';
952 952
 
953 953
 		// The Publisher Service and the AJAX adapter.
954
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-publisher-service.php';
955
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-publisher-ajax-adapter.php';
954
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-publisher-service.php';
955
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-publisher-ajax-adapter.php';
956 956
 
957
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-post-adapter.php';
957
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-post-adapter.php';
958 958
 
959 959
 		/**
960 960
 		 * Load the WordLift key validation service.
961 961
 		 */
962
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-key-validation-service.php';
962
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-key-validation-service.php';
963 963
 
964 964
 		// Load the `Wordlift_Category_Taxonomy_Service` class definition.
965
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-category-taxonomy-service.php';
965
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-category-taxonomy-service.php';
966 966
 
967 967
 		// Load the `Wordlift_Entity_Page_Service` class definition.
968
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-page-service.php';
968
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-entity-page-service.php';
969 969
 
970 970
 		/** Linked Data. */
971
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-storage.php';
972
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-meta-storage.php';
973
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-property-storage.php';
974
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-taxonomy-storage.php';
975
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-schema-class-storage.php';
976
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-author-storage.php';
977
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-meta-uri-storage.php';
978
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-image-storage.php';
979
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-related-storage.php';
980
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-url-property-storage.php';
981
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-storage-factory.php';
971
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/linked-data/storage/class-wordlift-storage.php';
972
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/linked-data/storage/class-wordlift-post-meta-storage.php';
973
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/linked-data/storage/class-wordlift-post-property-storage.php';
974
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/linked-data/storage/class-wordlift-post-taxonomy-storage.php';
975
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/linked-data/storage/class-wordlift-post-schema-class-storage.php';
976
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/linked-data/storage/class-wordlift-post-author-storage.php';
977
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/linked-data/storage/class-wordlift-post-meta-uri-storage.php';
978
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/linked-data/storage/class-wordlift-post-image-storage.php';
979
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/linked-data/storage/class-wordlift-post-related-storage.php';
980
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/linked-data/storage/class-wordlift-url-property-storage.php';
981
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/linked-data/storage/class-wordlift-storage-factory.php';
982 982
 
983 983
 		/** Linked Data Rendition. */
984
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/rendition/intf-wordlift-sparql-tuple-rendition.php';
985
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/rendition/class-wordlift-default-sparql-tuple-rendition.php';
986
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/rendition/class-wordlift-address-sparql-tuple-rendition.php';
987
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/rendition/class-wordlift-sparql-tuple-rendition-factory.php';
984
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/linked-data/rendition/intf-wordlift-sparql-tuple-rendition.php';
985
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/linked-data/rendition/class-wordlift-default-sparql-tuple-rendition.php';
986
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/linked-data/rendition/class-wordlift-address-sparql-tuple-rendition.php';
987
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/linked-data/rendition/class-wordlift-sparql-tuple-rendition-factory.php';
988 988
 
989 989
 		/** Services. */
990
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-google-analytics-export-service.php';
991
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-api-service.php';
990
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-google-analytics-export-service.php';
991
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-api-service.php';
992 992
 
993 993
 		/** Adapters. */
994
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-tinymce-adapter.php';
995
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-newrelic-adapter.php';
996
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-sample-data-ajax-adapter.php';
997
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-type-adapter.php';
998
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-wprocket-adapter.php';
994
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-tinymce-adapter.php';
995
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-newrelic-adapter.php';
996
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-sample-data-ajax-adapter.php';
997
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-entity-type-adapter.php';
998
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-wprocket-adapter.php';
999 999
 
1000 1000
 		/** Async Tasks. */
1001
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/wp-async-task/class-wordlift-async-task.php';
1002
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/wp-async-task/class-wordlift-sparql-query-async-task.php';
1003
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/wp-async-task/class-wordlift-push-references-async-task.php';
1001
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/wp-async-task/class-wordlift-async-task.php';
1002
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/wp-async-task/class-wordlift-sparql-query-async-task.php';
1003
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/wp-async-task/class-wordlift-push-references-async-task.php';
1004 1004
 
1005 1005
 		/** Autocomplete. */
1006
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-autocomplete-adapter.php';
1006
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-autocomplete-adapter.php';
1007 1007
 
1008
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-remote-image-service.php';
1008
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-remote-image-service.php';
1009 1009
 
1010 1010
 		/** Analytics */
1011
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/analytics/class-wordlift-analytics-connect.php';
1011
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/analytics/class-wordlift-analytics-connect.php';
1012 1012
 
1013 1013
 		/**
1014 1014
 		 * The class responsible for defining all actions that occur in the admin area.
1015 1015
 		 */
1016
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin.php';
1016
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-admin.php';
1017 1017
 
1018 1018
 		/**
1019 1019
 		 * The class to customize the entity list admin page.
1020 1020
 		 */
1021
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-entity-list.php';
1021
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-admin-entity-list.php';
1022 1022
 
1023 1023
 		/**
1024 1024
 		 * The Entity Types Taxonomy Walker (transforms checkboxes into radios).
1025 1025
 		 */
1026 1026
 		global $wp_version;
1027
-		if ( version_compare( $wp_version, '5.3', '<' ) ) {
1028
-			require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-entity-types-taxonomy-walker.php';
1027
+		if (version_compare($wp_version, '5.3', '<')) {
1028
+			require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-entity-types-taxonomy-walker.php';
1029 1029
 		} else {
1030
-			require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-entity-types-taxonomy-walker-5-3.php';
1030
+			require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-entity-types-taxonomy-walker-5-3.php';
1031 1031
 		}
1032 1032
 
1033 1033
 		/**
1034 1034
 		 * The Notice service.
1035 1035
 		 */
1036
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-notice-service.php';
1036
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-notice-service.php';
1037 1037
 
1038 1038
 		/**
1039 1039
 		 * The PrimaShop adapter.
1040 1040
 		 */
1041
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-primashop-adapter.php';
1041
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-primashop-adapter.php';
1042 1042
 
1043 1043
 		/**
1044 1044
 		 * The WordLift Dashboard service.
1045 1045
 		 */
1046
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-dashboard.php';
1046
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-admin-dashboard.php';
1047 1047
 
1048 1048
 		/**
1049 1049
 		 * The admin 'Install wizard' page.
1050 1050
 		 */
1051
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-setup.php';
1051
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-admin-setup.php';
1052 1052
 
1053 1053
 		/**
1054 1054
 		 * The WordLift entity type list admin page controller.
1055 1055
 		 */
1056
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-entity-taxonomy-list-page.php';
1056
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-admin-entity-taxonomy-list-page.php';
1057 1057
 
1058 1058
 		/**
1059 1059
 		 * The WordLift entity type settings admin page controller.
1060 1060
 		 */
1061
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-entity-type-settings.php';
1061
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-entity-type-settings.php';
1062 1062
 
1063 1063
 		/**
1064 1064
 		 * The admin 'Download Your Data' page.
1065 1065
 		 */
1066
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-download-your-data-page.php';
1066
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-download-your-data-page.php';
1067 1067
 
1068 1068
 		/**
1069 1069
 		 * The admin 'WordLift Settings' page.
1070 1070
 		 */
1071
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/intf-wordlift-admin-element.php';
1072
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-input-element.php';
1073
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-input-radio-element.php';
1074
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-select-element.php';
1075
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-select2-element.php';
1076
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-language-select-element.php';
1077
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-country-select-element.php';
1078
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-tabs-element.php';
1079
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-author-element.php';
1080
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-publisher-element.php';
1081
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-page.php';
1082
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-settings-page.php';
1083
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-settings-analytics-page.php';
1084
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-settings-page-action-link.php';
1085
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-settings-analytics-page-action-link.php';
1071
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/elements/intf-wordlift-admin-element.php';
1072
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/elements/class-wordlift-admin-input-element.php';
1073
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/elements/class-wordlift-admin-input-radio-element.php';
1074
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/elements/class-wordlift-admin-select-element.php';
1075
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/elements/class-wordlift-admin-select2-element.php';
1076
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/elements/class-wordlift-admin-language-select-element.php';
1077
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/elements/class-wordlift-admin-country-select-element.php';
1078
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/elements/class-wordlift-admin-tabs-element.php';
1079
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/elements/class-wordlift-admin-author-element.php';
1080
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/elements/class-wordlift-admin-publisher-element.php';
1081
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-admin-page.php';
1082
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-admin-settings-page.php';
1083
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-admin-settings-analytics-page.php';
1084
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-admin-settings-page-action-link.php';
1085
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-admin-settings-analytics-page-action-link.php';
1086 1086
 
1087 1087
 		/** Admin Pages */
1088
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-user-profile-page.php';
1089
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-status-page.php';
1090
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-search-rankings-page.php';
1091
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-entity-type-admin-service.php';
1088
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-admin-user-profile-page.php';
1089
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-admin-status-page.php';
1090
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-admin-search-rankings-page.php';
1091
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-entity-type-admin-service.php';
1092 1092
 
1093 1093
 		/**
1094 1094
 		 * The class responsible for defining all actions that occur in the public-facing
1095 1095
 		 * side of the site.
1096 1096
 		 */
1097
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-public.php';
1097
+		require_once plugin_dir_path(dirname(__FILE__)).'public/class-wordlift-public.php';
1098 1098
 
1099 1099
 		/**
1100 1100
 		 * The shortcode abstract class.
1101 1101
 		 */
1102
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-shortcode.php';
1102
+		require_once plugin_dir_path(dirname(__FILE__)).'public/class-wordlift-shortcode.php';
1103 1103
 
1104 1104
 		/**
1105 1105
 		 * The Timeline shortcode.
1106 1106
 		 */
1107
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-timeline-shortcode.php';
1107
+		require_once plugin_dir_path(dirname(__FILE__)).'public/class-wordlift-timeline-shortcode.php';
1108 1108
 
1109 1109
 		/**
1110 1110
 		 * The Navigator shortcode.
1111 1111
 		 */
1112
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-navigator-shortcode.php';
1112
+		require_once plugin_dir_path(dirname(__FILE__)).'public/class-wordlift-navigator-shortcode.php';
1113 1113
 
1114 1114
 		/**
1115 1115
 		 * The Products Navigator shortcode.
1116 1116
 		 */
1117
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-products-navigator-shortcode.php';
1117
+		require_once plugin_dir_path(dirname(__FILE__)).'public/class-wordlift-products-navigator-shortcode.php';
1118 1118
 
1119 1119
 		/**
1120 1120
 		 * The chord shortcode.
1121 1121
 		 */
1122
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-chord-shortcode.php';
1122
+		require_once plugin_dir_path(dirname(__FILE__)).'public/class-wordlift-chord-shortcode.php';
1123 1123
 
1124 1124
 		/**
1125 1125
 		 * The geomap shortcode.
1126 1126
 		 */
1127
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-geomap-shortcode.php';
1127
+		require_once plugin_dir_path(dirname(__FILE__)).'public/class-wordlift-geomap-shortcode.php';
1128 1128
 
1129 1129
 		/**
1130 1130
 		 * The entity cloud shortcode.
1131 1131
 		 */
1132
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-related-entities-cloud-shortcode.php';
1132
+		require_once plugin_dir_path(dirname(__FILE__)).'public/class-wordlift-related-entities-cloud-shortcode.php';
1133 1133
 
1134 1134
 		/**
1135 1135
 		 * The entity glossary shortcode.
1136 1136
 		 */
1137
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-alphabet-service.php';
1138
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-vocabulary-shortcode.php';
1137
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-alphabet-service.php';
1138
+		require_once plugin_dir_path(dirname(__FILE__)).'public/class-wordlift-vocabulary-shortcode.php';
1139 1139
 
1140 1140
 		/**
1141 1141
 		 * Faceted Search shortcode.
1142 1142
 		 */
1143
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-faceted-search-shortcode.php';
1143
+		require_once plugin_dir_path(dirname(__FILE__)).'public/class-wordlift-faceted-search-shortcode.php';
1144 1144
 
1145 1145
 		/**
1146 1146
 		 * The ShareThis service.
1147 1147
 		 */
1148
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-sharethis-service.php';
1148
+		require_once plugin_dir_path(dirname(__FILE__)).'public/class-wordlift-sharethis-service.php';
1149 1149
 
1150 1150
 		/**
1151 1151
 		 * The SEO service.
1152 1152
 		 */
1153
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-seo-service.php';
1153
+		require_once plugin_dir_path(dirname(__FILE__)).'public/class-wordlift-seo-service.php';
1154 1154
 
1155 1155
 		/**
1156 1156
 		 * The AMP service.
1157 1157
 		 */
1158
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-amp-service.php';
1158
+		require_once plugin_dir_path(dirname(__FILE__)).'public/class-wordlift-amp-service.php';
1159 1159
 
1160 1160
 		/** Widgets */
1161
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-widget.php';
1162
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-related-entities-cloud-widget.php';
1163
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-context-cards.php';
1161
+		require_once plugin_dir_path(dirname(__FILE__)).'public/class-wordlift-widget.php';
1162
+		require_once plugin_dir_path(dirname(__FILE__)).'public/class-wordlift-related-entities-cloud-widget.php';
1163
+		require_once plugin_dir_path(dirname(__FILE__)).'public/class-wordlift-context-cards.php';
1164 1164
 
1165 1165
 		/*
1166 1166
 		 * Schema.org Services.
1167 1167
 		 *
1168 1168
 		 * @see https://github.com/insideout10/wordlift-plugin/issues/835
1169 1169
 		 */
1170
-		if ( WL_ALL_ENTITY_TYPES ) {
1171
-			require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/schemaorg/class-wordlift-schemaorg-sync-service.php';
1172
-			require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/schemaorg/class-wordlift-schemaorg-property-service.php';
1173
-			require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/schemaorg/class-wordlift-schemaorg-class-service.php';
1170
+		if (WL_ALL_ENTITY_TYPES) {
1171
+			require_once plugin_dir_path(dirname(__FILE__)).'includes/schemaorg/class-wordlift-schemaorg-sync-service.php';
1172
+			require_once plugin_dir_path(dirname(__FILE__)).'includes/schemaorg/class-wordlift-schemaorg-property-service.php';
1173
+			require_once plugin_dir_path(dirname(__FILE__)).'includes/schemaorg/class-wordlift-schemaorg-class-service.php';
1174 1174
 			new Wordlift_Schemaorg_Sync_Service();
1175 1175
 			$schemaorg_property_service = new Wordlift_Schemaorg_Property_Service();
1176 1176
 			new Wordlift_Schemaorg_Class_Service();
@@ -1182,25 +1182,25 @@  discard block
 block discarded – undo
1182 1182
 
1183 1183
 		// Instantiate a global logger.
1184 1184
 		global $wl_logger;
1185
-		$wl_logger = Wordlift_Log_Service::get_logger( 'WordLift' );
1185
+		$wl_logger = Wordlift_Log_Service::get_logger('WordLift');
1186 1186
 
1187 1187
 		// Load the `wl-api` end-point.
1188 1188
 		new Wordlift_Http_Api();
1189 1189
 
1190 1190
 		// Load the Install Service.
1191
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'install/class-wordlift-install-service.php';
1191
+		require_once plugin_dir_path(dirname(__FILE__)).'install/class-wordlift-install-service.php';
1192 1192
 		$this->install_service = new Wordlift_Install_Service();
1193 1193
 
1194 1194
 		/** Services. */
1195 1195
 		// Create the configuration service.
1196 1196
 		$this->configuration_service = new Wordlift_Configuration_Service();
1197
-		$api_service                 = new Wordlift_Api_Service( $this->configuration_service );
1197
+		$api_service                 = new Wordlift_Api_Service($this->configuration_service);
1198 1198
 
1199 1199
 		// Create an entity type service instance. It'll be later bound to the init action.
1200
-		$this->entity_post_type_service = new Wordlift_Entity_Post_Type_Service( Wordlift_Entity_Service::TYPE_NAME, $this->configuration_service->get_entity_base_path() );
1200
+		$this->entity_post_type_service = new Wordlift_Entity_Post_Type_Service(Wordlift_Entity_Service::TYPE_NAME, $this->configuration_service->get_entity_base_path());
1201 1201
 
1202 1202
 		// Create an entity link service instance. It'll be later bound to the post_type_link and pre_get_posts actions.
1203
-		$this->entity_link_service = new Wordlift_Entity_Link_Service( $this->entity_post_type_service, $this->configuration_service->get_entity_base_path() );
1203
+		$this->entity_link_service = new Wordlift_Entity_Link_Service($this->entity_post_type_service, $this->configuration_service->get_entity_base_path());
1204 1204
 
1205 1205
 		// Create an instance of the UI service.
1206 1206
 		$this->ui_service = new Wordlift_UI_Service();
@@ -1209,34 +1209,34 @@  discard block
 block discarded – undo
1209 1209
 		$this->thumbnail_service = new Wordlift_Thumbnail_Service();
1210 1210
 
1211 1211
 		$this->sparql_service        = new Wordlift_Sparql_Service();
1212
-		$schema_url_property_service = new Wordlift_Schema_Url_Property_Service( $this->sparql_service );
1212
+		$schema_url_property_service = new Wordlift_Schema_Url_Property_Service($this->sparql_service);
1213 1213
 		$this->notice_service        = new Wordlift_Notice_Service();
1214 1214
 		$this->relation_service      = new Wordlift_Relation_Service();
1215 1215
 
1216
-		$entity_uri_cache_service = new Wordlift_File_Cache_Service( WL_TEMP_DIR . 'entity_uri/' );
1217
-		$this->entity_uri_service = new Wordlift_Cached_Entity_Uri_Service( $this->configuration_service, $entity_uri_cache_service );
1218
-		$this->entity_service     = new Wordlift_Entity_Service( $this->ui_service, $this->relation_service, $this->entity_uri_service );
1219
-		$this->user_service       = new Wordlift_User_Service( $this->sparql_service, $this->entity_service );
1216
+		$entity_uri_cache_service = new Wordlift_File_Cache_Service(WL_TEMP_DIR.'entity_uri/');
1217
+		$this->entity_uri_service = new Wordlift_Cached_Entity_Uri_Service($this->configuration_service, $entity_uri_cache_service);
1218
+		$this->entity_service     = new Wordlift_Entity_Service($this->ui_service, $this->relation_service, $this->entity_uri_service);
1219
+		$this->user_service       = new Wordlift_User_Service($this->sparql_service, $this->entity_service);
1220 1220
 
1221 1221
 		// Instantiate the JSON-LD service.
1222
-		$property_getter = Wordlift_Property_Getter_Factory::create( $this->entity_service );
1222
+		$property_getter = Wordlift_Property_Getter_Factory::create($this->entity_service);
1223 1223
 
1224 1224
 		/** Linked Data. */
1225
-		$this->storage_factory   = new Wordlift_Storage_Factory( $this->entity_service, $this->user_service, $property_getter );
1226
-		$this->rendition_factory = new Wordlift_Sparql_Tuple_Rendition_Factory( $this->entity_service );
1225
+		$this->storage_factory   = new Wordlift_Storage_Factory($this->entity_service, $this->user_service, $property_getter);
1226
+		$this->rendition_factory = new Wordlift_Sparql_Tuple_Rendition_Factory($this->entity_service);
1227 1227
 
1228
-		$this->schema_service = new Wordlift_Schema_Service( $this->storage_factory, $this->rendition_factory, $this->configuration_service );
1228
+		$this->schema_service = new Wordlift_Schema_Service($this->storage_factory, $this->rendition_factory, $this->configuration_service);
1229 1229
 
1230 1230
 		// Create a new instance of the Redirect service.
1231
-		$this->redirect_service    = new Wordlift_Redirect_Service( $this->entity_uri_service );
1232
-		$this->entity_type_service = new Wordlift_Entity_Type_Service( $this->schema_service );
1231
+		$this->redirect_service    = new Wordlift_Redirect_Service($this->entity_uri_service);
1232
+		$this->entity_type_service = new Wordlift_Entity_Type_Service($this->schema_service);
1233 1233
 
1234
-		if ( ! apply_filters( 'wl_features__enable__legacy_linked_data', true ) ) {
1235
-			new Wordlift_Linked_Data_Service( $this->entity_service, $this->entity_type_service, $this->schema_service, $this->sparql_service );
1234
+		if ( ! apply_filters('wl_features__enable__legacy_linked_data', true)) {
1235
+			new Wordlift_Linked_Data_Service($this->entity_service, $this->entity_type_service, $this->schema_service, $this->sparql_service);
1236 1236
 		}
1237 1237
 
1238 1238
 		// Create a new instance of the Timeline service and Timeline shortcode.
1239
-		$this->timeline_service = new Wordlift_Timeline_Service( $this->entity_service, $this->entity_type_service );
1239
+		$this->timeline_service = new Wordlift_Timeline_Service($this->entity_service, $this->entity_type_service);
1240 1240
 
1241 1241
 		$this->entity_types_taxonomy_walker = new Wordlift_Entity_Types_Taxonomy_Walker();
1242 1242
 
@@ -1250,36 +1250,36 @@  discard block
 block discarded – undo
1250 1250
 		$this->primashop_adapter = new Wordlift_PrimaShop_Adapter();
1251 1251
 
1252 1252
 		// Create an import service instance to hook later to WP's import function.
1253
-		$this->import_service = new Wordlift_Import_Service( $this->entity_post_type_service, $this->entity_service, $this->schema_service, $this->sparql_service, $this->configuration_service->get_dataset_uri() );
1253
+		$this->import_service = new Wordlift_Import_Service($this->entity_post_type_service, $this->entity_service, $this->schema_service, $this->sparql_service, $this->configuration_service->get_dataset_uri());
1254 1254
 
1255
-		$uri_service = new Wordlift_Uri_Service( $GLOBALS['wpdb'] );
1255
+		$uri_service = new Wordlift_Uri_Service($GLOBALS['wpdb']);
1256 1256
 
1257 1257
 		// Create the entity rating service.
1258
-		$this->rating_service = new Wordlift_Rating_Service( $this->entity_service, $this->entity_type_service, $this->notice_service );
1258
+		$this->rating_service = new Wordlift_Rating_Service($this->entity_service, $this->entity_type_service, $this->notice_service);
1259 1259
 
1260 1260
 		// Create entity list customization (wp-admin/edit.php).
1261
-		$this->entity_list_service = new Wordlift_Entity_List_Service( $this->rating_service );
1261
+		$this->entity_list_service = new Wordlift_Entity_List_Service($this->rating_service);
1262 1262
 
1263 1263
 		// Create a new instance of the Redirect service.
1264
-		$this->dashboard_service = new Wordlift_Dashboard_Service( $this->rating_service, $this->entity_service );
1264
+		$this->dashboard_service = new Wordlift_Dashboard_Service($this->rating_service, $this->entity_service);
1265 1265
 
1266 1266
 		// Create an instance of the Publisher Service and the AJAX Adapter.
1267
-		$this->publisher_service = new Wordlift_Publisher_Service( $this->configuration_service );
1268
-		$this->property_factory  = new Wordlift_Property_Factory( $schema_url_property_service );
1269
-		$this->property_factory->register( Wordlift_Schema_Url_Property_Service::META_KEY, $schema_url_property_service );
1267
+		$this->publisher_service = new Wordlift_Publisher_Service($this->configuration_service);
1268
+		$this->property_factory  = new Wordlift_Property_Factory($schema_url_property_service);
1269
+		$this->property_factory->register(Wordlift_Schema_Url_Property_Service::META_KEY, $schema_url_property_service);
1270 1270
 
1271 1271
 		$attachment_service = new Wordlift_Attachment_Service();
1272 1272
 
1273 1273
 		// Instantiate the JSON-LD service.
1274
-		$property_getter                       = Wordlift_Property_Getter_Factory::create( $this->entity_service );
1275
-		$this->post_to_jsonld_converter        = new Wordlift_Post_To_Jsonld_Converter( $this->entity_type_service, $this->entity_service, $this->user_service, $attachment_service, $this->configuration_service );
1276
-		$this->entity_post_to_jsonld_converter = new Wordlift_Entity_Post_To_Jsonld_Converter( $this->entity_type_service, $this->entity_service, $this->user_service, $attachment_service, $property_getter, $schemaorg_property_service, $this->post_to_jsonld_converter );
1277
-		$this->postid_to_jsonld_converter      = new Wordlift_Postid_To_Jsonld_Converter( $this->entity_service, $this->entity_post_to_jsonld_converter, $this->post_to_jsonld_converter );
1278
-		$this->jsonld_website_converter        = new Wordlift_Website_Jsonld_Converter( $this->entity_type_service, $this->entity_service, $this->user_service, $attachment_service, $this->configuration_service );
1274
+		$property_getter                       = Wordlift_Property_Getter_Factory::create($this->entity_service);
1275
+		$this->post_to_jsonld_converter        = new Wordlift_Post_To_Jsonld_Converter($this->entity_type_service, $this->entity_service, $this->user_service, $attachment_service, $this->configuration_service);
1276
+		$this->entity_post_to_jsonld_converter = new Wordlift_Entity_Post_To_Jsonld_Converter($this->entity_type_service, $this->entity_service, $this->user_service, $attachment_service, $property_getter, $schemaorg_property_service, $this->post_to_jsonld_converter);
1277
+		$this->postid_to_jsonld_converter      = new Wordlift_Postid_To_Jsonld_Converter($this->entity_service, $this->entity_post_to_jsonld_converter, $this->post_to_jsonld_converter);
1278
+		$this->jsonld_website_converter        = new Wordlift_Website_Jsonld_Converter($this->entity_type_service, $this->entity_service, $this->user_service, $attachment_service, $this->configuration_service);
1279 1279
 
1280
-		$jsonld_cache                            = new Ttl_Cache( 'jsonld', 86400 );
1281
-		$this->cached_postid_to_jsonld_converter = new Wordlift_Cached_Post_Converter( $this->postid_to_jsonld_converter, $this->configuration_service, $jsonld_cache );
1282
-		$this->jsonld_service                    = new Wordlift_Jsonld_Service( $this->entity_service, $this->cached_postid_to_jsonld_converter, $this->jsonld_website_converter );
1280
+		$jsonld_cache                            = new Ttl_Cache('jsonld', 86400);
1281
+		$this->cached_postid_to_jsonld_converter = new Wordlift_Cached_Post_Converter($this->postid_to_jsonld_converter, $this->configuration_service, $jsonld_cache);
1282
+		$this->jsonld_service                    = new Wordlift_Jsonld_Service($this->entity_service, $this->cached_postid_to_jsonld_converter, $this->jsonld_website_converter);
1283 1283
 
1284 1284
 		/*
1285 1285
 		 * Load the `Wordlift_Term_JsonLd_Adapter`.
@@ -1288,24 +1288,24 @@  discard block
 block discarded – undo
1288 1288
 		 *
1289 1289
 		 * @since 3.20.0
1290 1290
 		 */
1291
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-term-jsonld-adapter.php';
1292
-		$term_jsonld_adapter = new Wordlift_Term_JsonLd_Adapter( $this->entity_uri_service, $this->jsonld_service );
1293
-		$jsonld_service      = new Jsonld_Service( $this->jsonld_service, $term_jsonld_adapter );
1294
-		new Jsonld_Endpoint( $jsonld_service, $this->entity_uri_service );
1291
+		require_once plugin_dir_path(dirname(__FILE__)).'public/class-wordlift-term-jsonld-adapter.php';
1292
+		$term_jsonld_adapter = new Wordlift_Term_JsonLd_Adapter($this->entity_uri_service, $this->jsonld_service);
1293
+		$jsonld_service      = new Jsonld_Service($this->jsonld_service, $term_jsonld_adapter);
1294
+		new Jsonld_Endpoint($jsonld_service, $this->entity_uri_service);
1295 1295
 
1296 1296
 		// Prints the JSON-LD in the head.
1297
-		new Jsonld_Adapter( $this->jsonld_service );
1297
+		new Jsonld_Adapter($this->jsonld_service);
1298 1298
 
1299
-		new Jsonld_By_Id_Endpoint( $this->jsonld_service, $this->entity_uri_service );
1299
+		new Jsonld_By_Id_Endpoint($this->jsonld_service, $this->entity_uri_service);
1300 1300
 
1301
-		$this->key_validation_service = new Wordlift_Key_Validation_Service( $this->configuration_service );
1302
-		$this->content_filter_service = new Wordlift_Content_Filter_Service( $this->entity_service, $this->configuration_service, $this->entity_uri_service );
1301
+		$this->key_validation_service = new Wordlift_Key_Validation_Service($this->configuration_service);
1302
+		$this->content_filter_service = new Wordlift_Content_Filter_Service($this->entity_service, $this->configuration_service, $this->entity_uri_service);
1303 1303
 		// Creating Faq Content filter service.
1304 1304
 		$this->faq_content_filter_service = new Faq_Content_Filter();
1305
-		$this->relation_rebuild_service   = new Wordlift_Relation_Rebuild_Service( $this->content_filter_service, $this->entity_service );
1306
-		$this->sample_data_service        = new Wordlift_Sample_Data_Service( $this->entity_type_service, $this->configuration_service, $this->user_service );
1307
-		$this->sample_data_ajax_adapter   = new Wordlift_Sample_Data_Ajax_Adapter( $this->sample_data_service );
1308
-		$this->reference_rebuild_service  = new Wordlift_Reference_Rebuild_Service( $this->entity_service );
1305
+		$this->relation_rebuild_service   = new Wordlift_Relation_Rebuild_Service($this->content_filter_service, $this->entity_service);
1306
+		$this->sample_data_service        = new Wordlift_Sample_Data_Service($this->entity_type_service, $this->configuration_service, $this->user_service);
1307
+		$this->sample_data_ajax_adapter   = new Wordlift_Sample_Data_Ajax_Adapter($this->sample_data_service);
1308
+		$this->reference_rebuild_service  = new Wordlift_Reference_Rebuild_Service($this->entity_service);
1309 1309
 		/**
1310 1310
 		 * Filter: wl_feature__enable__blocks.
1311 1311
 		 *
@@ -1314,17 +1314,17 @@  discard block
 block discarded – undo
1314 1314
 		 * @return bool
1315 1315
 		 * @since 3.27.6
1316 1316
 		 */
1317
-		wp_register_script( 'wl_enabled_blocks', false );
1317
+		wp_register_script('wl_enabled_blocks', false);
1318 1318
 		$enabled_blocks = array('wordlift/products-navigator');
1319 1319
 
1320
-		if ( apply_filters( 'wl_feature__enable__blocks', true ) ) {
1320
+		if (apply_filters('wl_feature__enable__blocks', true)) {
1321 1321
 			// Initialize the short-codes.
1322 1322
 			new Wordlift_Navigator_Shortcode();
1323 1323
 			new Wordlift_Chord_Shortcode();
1324 1324
 			new Wordlift_Geomap_Shortcode();
1325 1325
 			new Wordlift_Timeline_Shortcode();
1326
-			new Wordlift_Related_Entities_Cloud_Shortcode( $this->relation_service );
1327
-			new Wordlift_Vocabulary_Shortcode( $this->configuration_service );
1326
+			new Wordlift_Related_Entities_Cloud_Shortcode($this->relation_service);
1327
+			new Wordlift_Vocabulary_Shortcode($this->configuration_service);
1328 1328
 			new Wordlift_Faceted_Search_Shortcode();
1329 1329
 
1330 1330
 			// To intimate JS
@@ -1340,8 +1340,8 @@  discard block
 block discarded – undo
1340 1340
 		}
1341 1341
 
1342 1342
 		new Wordlift_Products_Navigator_Shortcode();
1343
-		wp_localize_script( 'wl_enabled_blocks', 'wlEnabledBlocks', $enabled_blocks );
1344
-		wp_enqueue_script( 'wl_enabled_blocks' );
1343
+		wp_localize_script('wl_enabled_blocks', 'wlEnabledBlocks', $enabled_blocks);
1344
+		wp_enqueue_script('wl_enabled_blocks');
1345 1345
 
1346 1346
 		// Initialize the Context Cards Service
1347 1347
 		$this->context_cards_service = new Wordlift_Context_Cards_Service();
@@ -1350,18 +1350,18 @@  discard block
 block discarded – undo
1350 1350
 		new Wordlift_Seo_Service();
1351 1351
 
1352 1352
 		// Initialize the AMP service.
1353
-		new Wordlift_AMP_Service( $this->jsonld_service );
1353
+		new Wordlift_AMP_Service($this->jsonld_service);
1354 1354
 
1355 1355
 		/** Services. */
1356 1356
 		$this->google_analytics_export_service = new Wordlift_Google_Analytics_Export_Service();
1357 1357
 		new Wordlift_Image_Service();
1358 1358
 
1359 1359
 		/** Adapters. */
1360
-		$this->entity_type_adapter    = new Wordlift_Entity_Type_Adapter( $this->entity_type_service );
1361
-		$this->publisher_ajax_adapter = new Wordlift_Publisher_Ajax_Adapter( $this->publisher_service );
1362
-		$this->tinymce_adapter        = new Wordlift_Tinymce_Adapter( $this );
1360
+		$this->entity_type_adapter    = new Wordlift_Entity_Type_Adapter($this->entity_type_service);
1361
+		$this->publisher_ajax_adapter = new Wordlift_Publisher_Ajax_Adapter($this->publisher_service);
1362
+		$this->tinymce_adapter        = new Wordlift_Tinymce_Adapter($this);
1363 1363
 		//$this->faq_tinymce_adapter      = new Faq_Tinymce_Adapter();
1364
-		$this->relation_rebuild_adapter = new Wordlift_Relation_Rebuild_Adapter( $this->relation_rebuild_service );
1364
+		$this->relation_rebuild_adapter = new Wordlift_Relation_Rebuild_Adapter($this->relation_rebuild_service);
1365 1365
 
1366 1366
 		/*
1367 1367
 		 * Exclude our public js from WP-Rocket.
@@ -1391,14 +1391,14 @@  discard block
 block discarded – undo
1391 1391
 		$this->language_select_element = new Wordlift_Admin_Language_Select_Element();
1392 1392
 		$this->country_select_element  = new Wordlift_Admin_Country_Select_Element();
1393 1393
 		$tabs_element                  = new Wordlift_Admin_Tabs_Element();
1394
-		$this->publisher_element       = new Wordlift_Admin_Publisher_Element( $this->configuration_service, $this->publisher_service, $tabs_element, $this->select2_element );
1395
-		$this->author_element          = new Wordlift_Admin_Author_Element( $this->publisher_service, $this->select2_element );
1394
+		$this->publisher_element       = new Wordlift_Admin_Publisher_Element($this->configuration_service, $this->publisher_service, $tabs_element, $this->select2_element);
1395
+		$this->author_element          = new Wordlift_Admin_Author_Element($this->publisher_service, $this->select2_element);
1396 1396
 
1397
-		$this->settings_page             = new Wordlift_Admin_Settings_Page( $this->configuration_service, $this->entity_service, $this->input_element, $this->language_select_element, $this->country_select_element, $this->publisher_element, $this->radio_input_element );
1398
-		$this->settings_page_action_link = new Wordlift_Admin_Settings_Page_Action_Link( $this->settings_page );
1397
+		$this->settings_page             = new Wordlift_Admin_Settings_Page($this->configuration_service, $this->entity_service, $this->input_element, $this->language_select_element, $this->country_select_element, $this->publisher_element, $this->radio_input_element);
1398
+		$this->settings_page_action_link = new Wordlift_Admin_Settings_Page_Action_Link($this->settings_page);
1399 1399
 
1400
-		$this->analytics_settings_page             = new Wordlift_Admin_Settings_Analytics_Page( $this->configuration_service, $this->input_element, $this->radio_input_element );
1401
-		$this->analytics_settings_page_action_link = new Wordlift_Admin_Settings_Analytics_Page_Action_Link( $this->analytics_settings_page );
1400
+		$this->analytics_settings_page             = new Wordlift_Admin_Settings_Analytics_Page($this->configuration_service, $this->input_element, $this->radio_input_element);
1401
+		$this->analytics_settings_page_action_link = new Wordlift_Admin_Settings_Analytics_Page_Action_Link($this->analytics_settings_page);
1402 1402
 		$this->analytics_connect                   = new Wordlift_Analytics_Connect();
1403 1403
 
1404 1404
 		// Pages.
@@ -1409,9 +1409,9 @@  discard block
 block discarded – undo
1409 1409
 		 *
1410 1410
 		 * @see https://github.com/insideout10/wordlift-plugin/issues/914
1411 1411
 		 */
1412
-		if ( apply_filters( 'wl_can_see_classification_box', true ) ) {
1413
-			require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-post-edit-page.php';
1414
-			new Wordlift_Admin_Post_Edit_Page( $this );
1412
+		if (apply_filters('wl_can_see_classification_box', true)) {
1413
+			require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-admin-post-edit-page.php';
1414
+			new Wordlift_Admin_Post_Edit_Page($this);
1415 1415
 		}
1416 1416
 		new Wordlift_Entity_Type_Admin_Service();
1417 1417
 
@@ -1425,23 +1425,23 @@  discard block
 block discarded – undo
1425 1425
 		$this->related_entities_cloud_widget = new Wordlift_Related_Entities_Cloud_Widget();
1426 1426
 
1427 1427
 		/* WordPress Admin. */
1428
-		$this->download_your_data_page = new Wordlift_Admin_Download_Your_Data_Page( $this->configuration_service );
1429
-		$this->status_page             = new Wordlift_Admin_Status_Page( $this->entity_service, $this->sparql_service );
1428
+		$this->download_your_data_page = new Wordlift_Admin_Download_Your_Data_Page($this->configuration_service);
1429
+		$this->status_page             = new Wordlift_Admin_Status_Page($this->entity_service, $this->sparql_service);
1430 1430
 
1431 1431
 		// Create an instance of the install wizard.
1432
-		$this->admin_setup = new Wordlift_Admin_Setup( $this->configuration_service, $this->key_validation_service, $this->entity_service, $this->language_select_element, $this->country_select_element );
1432
+		$this->admin_setup = new Wordlift_Admin_Setup($this->configuration_service, $this->key_validation_service, $this->entity_service, $this->language_select_element, $this->country_select_element);
1433 1433
 
1434
-		$this->category_taxonomy_service = new Wordlift_Category_Taxonomy_Service( $this->entity_post_type_service );
1434
+		$this->category_taxonomy_service = new Wordlift_Category_Taxonomy_Service($this->entity_post_type_service);
1435 1435
 
1436 1436
 		// User Profile.
1437
-		new Wordlift_Admin_User_Profile_Page( $this->author_element, $this->user_service );
1437
+		new Wordlift_Admin_User_Profile_Page($this->author_element, $this->user_service);
1438 1438
 
1439 1439
 		$this->entity_page_service = new Wordlift_Entity_Page_Service();
1440 1440
 
1441 1441
 		// Load the debug service if WP is in debug mode.
1442
-		if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
1443
-			require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-debug-service.php';
1444
-			new Wordlift_Debug_Service( $this->entity_service, $uri_service );
1442
+		if (defined('WP_DEBUG') && WP_DEBUG) {
1443
+			require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-debug-service.php';
1444
+			new Wordlift_Debug_Service($this->entity_service, $uri_service);
1445 1445
 		}
1446 1446
 
1447 1447
 		// Remote Image Service.
@@ -1454,12 +1454,12 @@  discard block
 block discarded – undo
1454 1454
 		 *
1455 1455
 		 * @see https://github.com/insideout10/wordlift-plugin/issues/852.
1456 1456
 		 */
1457
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-batch-action.php';
1458
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/mapping/class-wordlift-mapping-service.php';
1459
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/mapping/class-wordlift-mapping-ajax-adapter.php';
1457
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-batch-action.php';
1458
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/mapping/class-wordlift-mapping-service.php';
1459
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/mapping/class-wordlift-mapping-ajax-adapter.php';
1460 1460
 
1461 1461
 		// Create an instance of the Mapping Service and assign it to the Ajax Adapter.
1462
-		new Wordlift_Mapping_Ajax_Adapter( new Wordlift_Mapping_Service( Wordlift_Entity_Type_Service::get_instance() ) );
1462
+		new Wordlift_Mapping_Ajax_Adapter(new Wordlift_Mapping_Service(Wordlift_Entity_Type_Service::get_instance()));
1463 1463
 
1464 1464
 		/*
1465 1465
 		 * Batch Operations. They're similar to Batch Actions but do not require working on post types.
@@ -1468,8 +1468,8 @@  discard block
 block discarded – undo
1468 1468
 		 *
1469 1469
 		 * @since 3.20.0
1470 1470
 		 */
1471
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/batch/intf-wordlift-batch-operation.php';
1472
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/batch/class-wordlift-batch-operation-ajax-adapter.php';
1471
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/batch/intf-wordlift-batch-operation.php';
1472
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/batch/class-wordlift-batch-operation-ajax-adapter.php';
1473 1473
 
1474 1474
 		/*
1475 1475
 		 * Add the Search Keywords taxonomy to manage the Search Keywords on WLS.
@@ -1478,8 +1478,8 @@  discard block
 block discarded – undo
1478 1478
 		 *
1479 1479
 		 * @since 3.20.0
1480 1480
 		 */
1481
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/search-keywords/class-wordlift-search-keyword-taxonomy.php';
1482
-		new Wordlift_Search_Keyword_Taxonomy( $api_service );
1481
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/search-keywords/class-wordlift-search-keyword-taxonomy.php';
1482
+		new Wordlift_Search_Keyword_Taxonomy($api_service);
1483 1483
 
1484 1484
 		/*
1485 1485
 		 * Load the Mappings JSON-LD post processing.
@@ -1492,11 +1492,11 @@  discard block
 block discarded – undo
1492 1492
 		new Post_Type_Rule_Validator();
1493 1493
 		// Taxonomy term rule validator for validating rules for term pages.
1494 1494
 		new Taxonomy_Term_Rule_Validator();
1495
-		$rule_validators_registry = new Rule_Validators_Registry( $default_rule_validator );
1496
-		$rule_groups_validator    = new Rule_Groups_Validator( $rule_validators_registry );
1497
-		$mappings_validator       = new Mappings_Validator( $mappings_dbo, $rule_groups_validator );
1495
+		$rule_validators_registry = new Rule_Validators_Registry($default_rule_validator);
1496
+		$rule_groups_validator    = new Rule_Groups_Validator($rule_validators_registry);
1497
+		$mappings_validator       = new Mappings_Validator($mappings_dbo, $rule_groups_validator);
1498 1498
 
1499
-		new Url_To_Entity_Transform_Function( $this->entity_uri_service );
1499
+		new Url_To_Entity_Transform_Function($this->entity_uri_service);
1500 1500
 		new Taxonomy_To_Terms_Transform_Function();
1501 1501
 		new Post_Id_To_Entity_Transform_Function();
1502 1502
 		$mappings_transform_functions_registry = new Mappings_Transform_Functions_Registry();
@@ -1506,7 +1506,7 @@  discard block
 block discarded – undo
1506 1506
 		 * Intiailize the acf group data formatter.
1507 1507
 		 */
1508 1508
 		new Acf_Group_Formatter();
1509
-		new Jsonld_Converter( $mappings_validator, $mappings_transform_functions_registry );
1509
+		new Jsonld_Converter($mappings_validator, $mappings_transform_functions_registry);
1510 1510
 
1511 1511
 		/**
1512 1512
 		 * @since 3.26.0
@@ -1527,7 +1527,7 @@  discard block
 block discarded – undo
1527 1527
 		/*
1528 1528
 		 * Create a singleton for the Analysis_Response_Ops_Factory.
1529 1529
 		 */
1530
-		$entity_helper = new Entity_Helper( $this->entity_uri_service, $this->entity_service );
1530
+		$entity_helper = new Entity_Helper($this->entity_uri_service, $this->entity_service);
1531 1531
 		new Analysis_Response_Ops_Factory(
1532 1532
 			$this->entity_uri_service,
1533 1533
 			$this->entity_service,
@@ -1537,11 +1537,11 @@  discard block
 block discarded – undo
1537 1537
 		);
1538 1538
 
1539 1539
 		/** WL Autocomplete. */
1540
-		$autocomplete_service       = new All_Autocomplete_Service( array(
1540
+		$autocomplete_service = new All_Autocomplete_Service(array(
1541 1541
 			new Local_Autocomplete_Service(),
1542
-			new Linked_Data_Autocomplete_Service( $this->configuration_service, $entity_helper, $this->entity_uri_service, $this->entity_service ),
1543
-		) );
1544
-		$this->autocomplete_adapter = new Wordlift_Autocomplete_Adapter( $autocomplete_service );
1542
+			new Linked_Data_Autocomplete_Service($this->configuration_service, $entity_helper, $this->entity_uri_service, $this->entity_service),
1543
+		));
1544
+		$this->autocomplete_adapter = new Wordlift_Autocomplete_Adapter($autocomplete_service);
1545 1545
 
1546 1546
 		/**
1547 1547
 		 * @since 3.27.2
@@ -1550,10 +1550,10 @@  discard block
 block discarded – undo
1550 1550
 		 */
1551 1551
 		new Recipe_Maker_Post_Type_Hook();
1552 1552
 		$recipe_maker_validation_service = new Recipe_Maker_Validation_Service();
1553
-		new Recipe_Maker_Jsonld_Hook( $attachment_service, $recipe_maker_validation_service );
1554
-		new Recipe_Maker_After_Get_Jsonld_Hook( $recipe_maker_validation_service );
1555
-		new Recipe_Maker_Warning( $recipe_maker_validation_service );
1556
-		new Yoast_Jsonld( $recipe_maker_validation_service );
1553
+		new Recipe_Maker_Jsonld_Hook($attachment_service, $recipe_maker_validation_service);
1554
+		new Recipe_Maker_After_Get_Jsonld_Hook($recipe_maker_validation_service);
1555
+		new Recipe_Maker_Warning($recipe_maker_validation_service);
1556
+		new Yoast_Jsonld($recipe_maker_validation_service);
1557 1557
 
1558 1558
 		/**
1559 1559
 		 * @since 3.27.4
@@ -1574,9 +1574,9 @@  discard block
 block discarded – undo
1574 1574
 	private function set_locale() {
1575 1575
 
1576 1576
 		$plugin_i18n = new Wordlift_i18n();
1577
-		$plugin_i18n->set_domain( $this->get_plugin_name() );
1577
+		$plugin_i18n->set_domain($this->get_plugin_name());
1578 1578
 
1579
-		$this->loader->add_action( 'plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' );
1579
+		$this->loader->add_action('plugins_loaded', $plugin_i18n, 'load_plugin_textdomain');
1580 1580
 
1581 1581
 	}
1582 1582
 
@@ -1597,29 +1597,29 @@  discard block
 block discarded – undo
1597 1597
 			$this->user_service
1598 1598
 		);
1599 1599
 
1600
-		$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' );
1601
-		$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts', 11 );
1600
+		$this->loader->add_action('admin_enqueue_scripts', $plugin_admin, 'enqueue_styles');
1601
+		$this->loader->add_action('admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts', 11);
1602 1602
 
1603 1603
 		// Hook the init action to taxonomy services.
1604
-		$this->loader->add_action( 'init', $this->topic_taxonomy_service, 'init', 0 );
1605
-		$this->loader->add_action( 'init', $this->entity_types_taxonomy_service, 'init', 0 );
1604
+		$this->loader->add_action('init', $this->topic_taxonomy_service, 'init', 0);
1605
+		$this->loader->add_action('init', $this->entity_types_taxonomy_service, 'init', 0);
1606 1606
 
1607 1607
 		// Hook the deleted_post_meta action to the Thumbnail service.
1608
-		$this->loader->add_action( 'deleted_post_meta', $this->thumbnail_service, 'deleted_post_meta', 10, 4 );
1608
+		$this->loader->add_action('deleted_post_meta', $this->thumbnail_service, 'deleted_post_meta', 10, 4);
1609 1609
 
1610 1610
 		// Hook the added_post_meta action to the Thumbnail service.
1611
-		$this->loader->add_action( 'added_post_meta', $this->thumbnail_service, 'added_or_updated_post_meta', 10, 4 );
1611
+		$this->loader->add_action('added_post_meta', $this->thumbnail_service, 'added_or_updated_post_meta', 10, 4);
1612 1612
 
1613 1613
 		// Hook the updated_post_meta action to the Thumbnail service.
1614
-		$this->loader->add_action( 'updated_post_meta', $this->thumbnail_service, 'added_or_updated_post_meta', 10, 4 );
1614
+		$this->loader->add_action('updated_post_meta', $this->thumbnail_service, 'added_or_updated_post_meta', 10, 4);
1615 1615
 
1616 1616
 		// Hook the AJAX wl_timeline action to the Timeline service.
1617
-		$this->loader->add_action( 'wp_ajax_wl_timeline', $this->timeline_service, 'ajax_timeline' );
1617
+		$this->loader->add_action('wp_ajax_wl_timeline', $this->timeline_service, 'ajax_timeline');
1618 1618
 
1619 1619
 		// Register custom allowed redirect hosts.
1620
-		$this->loader->add_filter( 'allowed_redirect_hosts', $this->redirect_service, 'allowed_redirect_hosts' );
1620
+		$this->loader->add_filter('allowed_redirect_hosts', $this->redirect_service, 'allowed_redirect_hosts');
1621 1621
 		// Hook the AJAX wordlift_redirect action to the Redirect service.
1622
-		$this->loader->add_action( 'wp_ajax_wordlift_redirect', $this->redirect_service, 'ajax_redirect' );
1622
+		$this->loader->add_action('wp_ajax_wordlift_redirect', $this->redirect_service, 'ajax_redirect');
1623 1623
 
1624 1624
 		/*
1625 1625
 		 * The old dashboard is replaced with dashboard v2.
@@ -1637,46 +1637,46 @@  discard block
 block discarded – undo
1637 1637
 
1638 1638
 		// Hook save_post to the entity service to update custom fields (such as alternate labels).
1639 1639
 		// We have a priority of 9 because we want to be executed before data is sent to Redlink.
1640
-		$this->loader->add_action( 'save_post', $this->entity_service, 'save_post', 9, 3 );
1641
-		$this->loader->add_action( 'save_post', $this->rating_service, 'set_rating_for', 20, 1 );
1640
+		$this->loader->add_action('save_post', $this->entity_service, 'save_post', 9, 3);
1641
+		$this->loader->add_action('save_post', $this->rating_service, 'set_rating_for', 20, 1);
1642 1642
 
1643
-		$this->loader->add_action( 'edit_form_before_permalink', $this->entity_service, 'edit_form_before_permalink', 10, 1 );
1644
-		$this->loader->add_action( 'in_admin_header', $this->rating_service, 'in_admin_header' );
1643
+		$this->loader->add_action('edit_form_before_permalink', $this->entity_service, 'edit_form_before_permalink', 10, 1);
1644
+		$this->loader->add_action('in_admin_header', $this->rating_service, 'in_admin_header');
1645 1645
 
1646 1646
 		// Entity listing customization (wp-admin/edit.php)
1647 1647
 		// Add custom columns.
1648
-		$this->loader->add_filter( 'manage_entity_posts_columns', $this->entity_list_service, 'register_custom_columns' );
1648
+		$this->loader->add_filter('manage_entity_posts_columns', $this->entity_list_service, 'register_custom_columns');
1649 1649
 		// no explicit entity as it prevents handling of other post types.
1650
-		$this->loader->add_filter( 'manage_posts_custom_column', $this->entity_list_service, 'render_custom_columns', 10, 2 );
1650
+		$this->loader->add_filter('manage_posts_custom_column', $this->entity_list_service, 'render_custom_columns', 10, 2);
1651 1651
 		// Add 4W selection.
1652
-		$this->loader->add_action( 'restrict_manage_posts', $this->entity_list_service, 'restrict_manage_posts_classification_scope' );
1653
-		$this->loader->add_filter( 'posts_clauses', $this->entity_list_service, 'posts_clauses_classification_scope' );
1654
-		$this->loader->add_action( 'pre_get_posts', $this->entity_list_service, 'pre_get_posts' );
1655
-		$this->loader->add_action( 'load-edit.php', $this->entity_list_service, 'load_edit' );
1652
+		$this->loader->add_action('restrict_manage_posts', $this->entity_list_service, 'restrict_manage_posts_classification_scope');
1653
+		$this->loader->add_filter('posts_clauses', $this->entity_list_service, 'posts_clauses_classification_scope');
1654
+		$this->loader->add_action('pre_get_posts', $this->entity_list_service, 'pre_get_posts');
1655
+		$this->loader->add_action('load-edit.php', $this->entity_list_service, 'load_edit');
1656 1656
 
1657 1657
 		/*
1658 1658
 		 * If `All Entity Types` is disable, use the radio button Walker.
1659 1659
 		 *
1660 1660
 		 * @see https://github.com/insideout10/wordlift-plugin/issues/835
1661 1661
 		 */
1662
-		if ( ! WL_ALL_ENTITY_TYPES ) {
1663
-			$this->loader->add_filter( 'wp_terms_checklist_args', $this->entity_types_taxonomy_walker, 'terms_checklist_args' );
1662
+		if ( ! WL_ALL_ENTITY_TYPES) {
1663
+			$this->loader->add_filter('wp_terms_checklist_args', $this->entity_types_taxonomy_walker, 'terms_checklist_args');
1664 1664
 		}
1665 1665
 
1666 1666
 		// Hook the PrimaShop adapter to <em>prima_metabox_entity_header_args</em> in order to add header support for
1667 1667
 		// entities.
1668
-		$this->loader->add_filter( 'prima_metabox_entity_header_args', $this->primashop_adapter, 'prima_metabox_entity_header_args', 10, 2 );
1668
+		$this->loader->add_filter('prima_metabox_entity_header_args', $this->primashop_adapter, 'prima_metabox_entity_header_args', 10, 2);
1669 1669
 
1670 1670
 		// Filter imported post meta.
1671
-		$this->loader->add_filter( 'wp_import_post_meta', $this->import_service, 'wp_import_post_meta', 10, 3 );
1671
+		$this->loader->add_filter('wp_import_post_meta', $this->import_service, 'wp_import_post_meta', 10, 3);
1672 1672
 
1673 1673
 		// Notify the import service when an import starts and ends.
1674
-		$this->loader->add_action( 'import_start', $this->import_service, 'import_start', 10, 0 );
1675
-		$this->loader->add_action( 'import_end', $this->import_service, 'import_end', 10, 0 );
1674
+		$this->loader->add_action('import_start', $this->import_service, 'import_start', 10, 0);
1675
+		$this->loader->add_action('import_end', $this->import_service, 'import_end', 10, 0);
1676 1676
 
1677 1677
 		// Hook the AJAX wl_rebuild action to the Rebuild Service.
1678
-		$this->loader->add_action( 'wp_ajax_wl_rebuild', $this->rebuild_service, 'rebuild' );
1679
-		$this->loader->add_action( 'wp_ajax_wl_rebuild_references', $this->reference_rebuild_service, 'rebuild' );
1678
+		$this->loader->add_action('wp_ajax_wl_rebuild', $this->rebuild_service, 'rebuild');
1679
+		$this->loader->add_action('wp_ajax_wl_rebuild_references', $this->reference_rebuild_service, 'rebuild');
1680 1680
 
1681 1681
 		/**
1682 1682
 		 * Filter: wl_feature__enable__screens.
@@ -1686,34 +1686,34 @@  discard block
 block discarded – undo
1686 1686
 		 * @return bool
1687 1687
 		 * @since 3.27.6
1688 1688
 		 */
1689
-		if ( apply_filters( 'wl_feature__enable__screens', true ) ) {
1689
+		if (apply_filters('wl_feature__enable__screens', true)) {
1690 1690
 			// Hook the menu to the Download Your Data page.
1691
-			$this->loader->add_action( 'admin_menu', $this->download_your_data_page, 'admin_menu', 100, 0 );
1692
-			$this->loader->add_action( 'admin_menu', $this->status_page, 'admin_menu', 100, 0 );
1693
-			$this->loader->add_action( 'admin_menu', $this->entity_type_settings_admin_page, 'admin_menu', 100, 0 );
1691
+			$this->loader->add_action('admin_menu', $this->download_your_data_page, 'admin_menu', 100, 0);
1692
+			$this->loader->add_action('admin_menu', $this->status_page, 'admin_menu', 100, 0);
1693
+			$this->loader->add_action('admin_menu', $this->entity_type_settings_admin_page, 'admin_menu', 100, 0);
1694 1694
 		}
1695 1695
 		// Hook the admin-ajax.php?action=wl_download_your_data&out=xyz links.
1696
-		$this->loader->add_action( 'wp_ajax_wl_download_your_data', $this->download_your_data_page, 'download_your_data', 10 );
1696
+		$this->loader->add_action('wp_ajax_wl_download_your_data', $this->download_your_data_page, 'download_your_data', 10);
1697 1697
 
1698 1698
 		// Hook the AJAX wl_jsonld action to the JSON-LD service.
1699
-		$this->loader->add_action( 'wp_ajax_wl_jsonld', $this->jsonld_service, 'get' );
1700
-		$this->loader->add_action( 'admin_post_wl_jsonld', $this->jsonld_service, 'get' );
1701
-		$this->loader->add_action( 'admin_post_nopriv_wl_jsonld', $this->jsonld_service, 'get' );
1699
+		$this->loader->add_action('wp_ajax_wl_jsonld', $this->jsonld_service, 'get');
1700
+		$this->loader->add_action('admin_post_wl_jsonld', $this->jsonld_service, 'get');
1701
+		$this->loader->add_action('admin_post_nopriv_wl_jsonld', $this->jsonld_service, 'get');
1702 1702
 
1703 1703
 		// Hook the AJAX wl_validate_key action to the Key Validation service.
1704
-		$this->loader->add_action( 'wp_ajax_wl_validate_key', $this->key_validation_service, 'validate_key' );
1704
+		$this->loader->add_action('wp_ajax_wl_validate_key', $this->key_validation_service, 'validate_key');
1705 1705
 
1706 1706
 		// Hook the AJAX wl_update_country_options action to the countries.
1707
-		$this->loader->add_action( 'wp_ajax_wl_update_country_options', $this->country_select_element, 'get_options_html' );
1707
+		$this->loader->add_action('wp_ajax_wl_update_country_options', $this->country_select_element, 'get_options_html');
1708 1708
 
1709 1709
 		// Hook the `admin_init` function to the Admin Setup.
1710
-		$this->loader->add_action( 'admin_init', $this->admin_setup, 'admin_init' );
1710
+		$this->loader->add_action('admin_init', $this->admin_setup, 'admin_init');
1711 1711
 
1712 1712
 		// Hook the admin_init to the settings page.
1713
-		$this->loader->add_action( 'admin_init', $this->settings_page, 'admin_init' );
1714
-		$this->loader->add_action( 'admin_init', $this->analytics_settings_page, 'admin_init' );
1713
+		$this->loader->add_action('admin_init', $this->settings_page, 'admin_init');
1714
+		$this->loader->add_action('admin_init', $this->analytics_settings_page, 'admin_init');
1715 1715
 
1716
-		$this->loader->add_filter( 'admin_post_thumbnail_html', $this->publisher_service, 'add_featured_image_instruction' );
1716
+		$this->loader->add_filter('admin_post_thumbnail_html', $this->publisher_service, 'add_featured_image_instruction');
1717 1717
 
1718 1718
 		// Hook the menu creation on the general wordlift menu creation.
1719 1719
 		/**
@@ -1724,8 +1724,8 @@  discard block
 block discarded – undo
1724 1724
 		 * @return bool
1725 1725
 		 * @since 3.27.6
1726 1726
 		 */
1727
-		if ( apply_filters( 'wl_feature__enable__screens', true ) ) {
1728
-			$this->loader->add_action( 'wl_admin_menu', $this->settings_page, 'admin_menu', 10, 2 );
1727
+		if (apply_filters('wl_feature__enable__screens', true)) {
1728
+			$this->loader->add_action('wl_admin_menu', $this->settings_page, 'admin_menu', 10, 2);
1729 1729
 		}
1730 1730
 		/*
1731 1731
 		 * Display the `Wordlift_Admin_Search_Rankings_Page` page.
@@ -1734,7 +1734,7 @@  discard block
 block discarded – undo
1734 1734
 		 *
1735 1735
 		 * @since 3.20.0
1736 1736
 		 */
1737
-		if ( in_array( $this->configuration_service->get_package_type(), array( 'editorial', 'business' ) ) ) {
1737
+		if (in_array($this->configuration_service->get_package_type(), array('editorial', 'business'))) {
1738 1738
 			/**
1739 1739
 			 * Filter: wl_feature__enable__screens.
1740 1740
 			 *
@@ -1743,18 +1743,18 @@  discard block
 block discarded – undo
1743 1743
 			 * @return bool
1744 1744
 			 * @since 3.27.6
1745 1745
 			 */
1746
-			if ( apply_filters( 'wl_feature__enable__screens', true ) ) {
1746
+			if (apply_filters('wl_feature__enable__screens', true)) {
1747 1747
 				$admin_search_rankings_page = new Wordlift_Admin_Search_Rankings_Page();
1748
-				$this->loader->add_action( 'wl_admin_menu', $admin_search_rankings_page, 'admin_menu' );
1748
+				$this->loader->add_action('wl_admin_menu', $admin_search_rankings_page, 'admin_menu');
1749 1749
 			}
1750 1750
 		}
1751 1751
 
1752 1752
 		// Hook key update.
1753
-		$this->loader->add_action( 'pre_update_option_wl_general_settings', $this->configuration_service, 'maybe_update_dataset_uri', 10, 2 );
1754
-		$this->loader->add_action( 'update_option_wl_general_settings', $this->configuration_service, 'update_key', 10, 2 );
1753
+		$this->loader->add_action('pre_update_option_wl_general_settings', $this->configuration_service, 'maybe_update_dataset_uri', 10, 2);
1754
+		$this->loader->add_action('update_option_wl_general_settings', $this->configuration_service, 'update_key', 10, 2);
1755 1755
 
1756 1756
 		// Add additional action links to the WordLift plugin in the plugins page.
1757
-		$this->loader->add_filter( 'plugin_action_links_wordlift/wordlift.php', $this->settings_page_action_link, 'action_links', 10, 1 );
1757
+		$this->loader->add_filter('plugin_action_links_wordlift/wordlift.php', $this->settings_page_action_link, 'action_links', 10, 1);
1758 1758
 
1759 1759
 		/*
1760 1760
 		 * Remove the Analytics Settings link from the plugin page.
@@ -1765,25 +1765,25 @@  discard block
 block discarded – undo
1765 1765
 		// $this->loader->add_filter( 'plugin_action_links_wordlift/wordlift.php', $this->analytics_settings_page_action_link, 'action_links', 10, 1 );
1766 1766
 
1767 1767
 		// Hook the AJAX `wl_publisher` action name.
1768
-		$this->loader->add_action( 'wp_ajax_wl_publisher', $this->publisher_ajax_adapter, 'publisher' );
1768
+		$this->loader->add_action('wp_ajax_wl_publisher', $this->publisher_ajax_adapter, 'publisher');
1769 1769
 
1770 1770
 		// Hook row actions for the entity type list admin.
1771
-		$this->loader->add_filter( 'wl_entity_type_row_actions', $this->entity_type_admin_page, 'wl_entity_type_row_actions', 10, 2 );
1771
+		$this->loader->add_filter('wl_entity_type_row_actions', $this->entity_type_admin_page, 'wl_entity_type_row_actions', 10, 2);
1772 1772
 
1773 1773
 		/** Ajax actions. */
1774
-		$this->loader->add_action( 'wp_ajax_wl_google_analytics_export', $this->google_analytics_export_service, 'export' );
1774
+		$this->loader->add_action('wp_ajax_wl_google_analytics_export', $this->google_analytics_export_service, 'export');
1775 1775
 
1776 1776
 		// Hook capabilities manipulation to allow access to entity type admin
1777 1777
 		// page  on WordPress versions before 4.7.
1778 1778
 		global $wp_version;
1779
-		if ( version_compare( $wp_version, '4.7', '<' ) ) {
1780
-			$this->loader->add_filter( 'map_meta_cap', $this->entity_type_admin_page, 'enable_admin_access_pre_47', 10, 4 );
1779
+		if (version_compare($wp_version, '4.7', '<')) {
1780
+			$this->loader->add_filter('map_meta_cap', $this->entity_type_admin_page, 'enable_admin_access_pre_47', 10, 4);
1781 1781
 		}
1782 1782
 
1783
-		$this->loader->add_action( 'wl_async_wl_run_sparql_query', $this->sparql_service, 'run_sparql_query', 10, 1 );
1783
+		$this->loader->add_action('wl_async_wl_run_sparql_query', $this->sparql_service, 'run_sparql_query', 10, 1);
1784 1784
 
1785 1785
 		/** Adapters. */
1786
-		$this->loader->add_filter( 'mce_external_plugins', $this->tinymce_adapter, 'mce_external_plugins', 10, 1 );
1786
+		$this->loader->add_filter('mce_external_plugins', $this->tinymce_adapter, 'mce_external_plugins', 10, 1);
1787 1787
 		/**
1788 1788
 		 * Disabling Faq temporarily.
1789 1789
 		 * Load the tinymce editor button on the tool bar.
@@ -1794,58 +1794,58 @@  discard block
 block discarded – undo
1794 1794
 		//$this->loader->add_filter( 'mce_external_plugins', $this->faq_tinymce_adapter, 'register_faq_tinymce_plugin', 10, 1 );
1795 1795
 
1796 1796
 
1797
-		$this->loader->add_action( 'wp_ajax_wl_relation_rebuild_process_all', $this->relation_rebuild_adapter, 'process_all' );
1798
-		$this->loader->add_action( 'wp_ajax_wl_sample_data_create', $this->sample_data_ajax_adapter, 'create' );
1799
-		$this->loader->add_action( 'wp_ajax_wl_sample_data_delete', $this->sample_data_ajax_adapter, 'delete' );
1797
+		$this->loader->add_action('wp_ajax_wl_relation_rebuild_process_all', $this->relation_rebuild_adapter, 'process_all');
1798
+		$this->loader->add_action('wp_ajax_wl_sample_data_create', $this->sample_data_ajax_adapter, 'create');
1799
+		$this->loader->add_action('wp_ajax_wl_sample_data_delete', $this->sample_data_ajax_adapter, 'delete');
1800 1800
 		/**
1801 1801
 		 * @since 3.26.0
1802 1802
 		 * Post excerpt meta box would be only loaded when the language is set
1803 1803
 		 * to english
1804 1804
 		 */
1805
-		if ( apply_filters( 'wl_feature__enable__post_excerpt', true ) ) {
1805
+		if (apply_filters('wl_feature__enable__post_excerpt', true)) {
1806 1806
 			$excerpt_adapter = new Post_Excerpt_Meta_Box_Adapter();
1807
-			$this->loader->add_action( 'do_meta_boxes', $excerpt_adapter, 'replace_post_excerpt_meta_box' );
1807
+			$this->loader->add_action('do_meta_boxes', $excerpt_adapter, 'replace_post_excerpt_meta_box');
1808 1808
 			// Adding Rest route for the post excerpt
1809 1809
 			Post_Excerpt_Rest_Controller::register_routes();
1810 1810
 		}
1811 1811
 
1812
-		$this->loader->add_action( 'update_user_metadata', $this->user_service, 'update_user_metadata', 10, 5 );
1813
-		$this->loader->add_action( 'delete_user_metadata', $this->user_service, 'delete_user_metadata', 10, 5 );
1812
+		$this->loader->add_action('update_user_metadata', $this->user_service, 'update_user_metadata', 10, 5);
1813
+		$this->loader->add_action('delete_user_metadata', $this->user_service, 'delete_user_metadata', 10, 5);
1814 1814
 
1815 1815
 		// Handle the autocomplete request.
1816
-		add_action( 'wp_ajax_wl_autocomplete', array(
1816
+		add_action('wp_ajax_wl_autocomplete', array(
1817 1817
 			$this->autocomplete_adapter,
1818 1818
 			'wl_autocomplete',
1819
-		) );
1820
-		add_action( 'wp_ajax_nopriv_wl_autocomplete', array(
1819
+		));
1820
+		add_action('wp_ajax_nopriv_wl_autocomplete', array(
1821 1821
 			$this->autocomplete_adapter,
1822 1822
 			'wl_autocomplete',
1823
-		) );
1823
+		));
1824 1824
 
1825 1825
 		// Hooks to restrict multisite super admin from manipulating entity types.
1826
-		if ( is_multisite() ) {
1827
-			$this->loader->add_filter( 'map_meta_cap', $this->entity_type_admin_page, 'restrict_super_admin', 10, 4 );
1826
+		if (is_multisite()) {
1827
+			$this->loader->add_filter('map_meta_cap', $this->entity_type_admin_page, 'restrict_super_admin', 10, 4);
1828 1828
 		}
1829 1829
 
1830
-		$deactivator_feedback = new Wordlift_Deactivator_Feedback( $this->configuration_service );
1830
+		$deactivator_feedback = new Wordlift_Deactivator_Feedback($this->configuration_service);
1831 1831
 
1832
-		add_action( 'admin_footer', array( $deactivator_feedback, 'render_feedback_popup' ) );
1833
-		add_action( 'admin_enqueue_scripts', array( $deactivator_feedback, 'enqueue_popup_scripts' ) );
1834
-		add_action( 'wp_ajax_wl_deactivation_feedback', array( $deactivator_feedback, 'wl_deactivation_feedback' ) );
1832
+		add_action('admin_footer', array($deactivator_feedback, 'render_feedback_popup'));
1833
+		add_action('admin_enqueue_scripts', array($deactivator_feedback, 'enqueue_popup_scripts'));
1834
+		add_action('wp_ajax_wl_deactivation_feedback', array($deactivator_feedback, 'wl_deactivation_feedback'));
1835 1835
 
1836 1836
 		/**
1837 1837
 		 * Always allow the `wordlift/classification` block.
1838 1838
 		 *
1839 1839
 		 * @since 3.23.0
1840 1840
 		 */
1841
-		add_filter( 'allowed_block_types', function ( $value ) {
1841
+		add_filter('allowed_block_types', function($value) {
1842 1842
 
1843
-			if ( true === $value ) {
1843
+			if (true === $value) {
1844 1844
 				return $value;
1845 1845
 			}
1846 1846
 
1847
-			return array_merge( (array) $value, array( 'wordlift/classification' ) );
1848
-		}, PHP_INT_MAX );
1847
+			return array_merge((array) $value, array('wordlift/classification'));
1848
+		}, PHP_INT_MAX);
1849 1849
 	}
1850 1850
 
1851 1851
 	/**
@@ -1857,58 +1857,58 @@  discard block
 block discarded – undo
1857 1857
 	 */
1858 1858
 	private function define_public_hooks() {
1859 1859
 
1860
-		$plugin_public = new Wordlift_Public( $this->get_plugin_name(), $this->get_version() );
1860
+		$plugin_public = new Wordlift_Public($this->get_plugin_name(), $this->get_version());
1861 1861
 
1862 1862
 		// Register the entity post type.
1863
-		$this->loader->add_action( 'init', $this->entity_post_type_service, 'register' );
1863
+		$this->loader->add_action('init', $this->entity_post_type_service, 'register');
1864 1864
 
1865 1865
 		// Bind the link generation and handling hooks to the entity link service.
1866
-		$this->loader->add_filter( 'post_type_link', $this->entity_link_service, 'post_type_link', 10, 4 );
1867
-		$this->loader->add_action( 'pre_get_posts', $this->entity_link_service, 'pre_get_posts', PHP_INT_MAX, 1 );
1868
-		$this->loader->add_filter( 'wp_unique_post_slug_is_bad_flat_slug', $this->entity_link_service, 'wp_unique_post_slug_is_bad_flat_slug', 10, 3 );
1869
-		$this->loader->add_filter( 'wp_unique_post_slug_is_bad_hierarchical_slug', $this->entity_link_service, 'wp_unique_post_slug_is_bad_hierarchical_slug', 10, 4 );
1866
+		$this->loader->add_filter('post_type_link', $this->entity_link_service, 'post_type_link', 10, 4);
1867
+		$this->loader->add_action('pre_get_posts', $this->entity_link_service, 'pre_get_posts', PHP_INT_MAX, 1);
1868
+		$this->loader->add_filter('wp_unique_post_slug_is_bad_flat_slug', $this->entity_link_service, 'wp_unique_post_slug_is_bad_flat_slug', 10, 3);
1869
+		$this->loader->add_filter('wp_unique_post_slug_is_bad_hierarchical_slug', $this->entity_link_service, 'wp_unique_post_slug_is_bad_hierarchical_slug', 10, 4);
1870 1870
 
1871
-		$this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_styles' );
1872
-		$this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' );
1873
-		$this->loader->add_action( 'wp_enqueue_scripts', $this->context_cards_service, 'enqueue_scripts' );
1871
+		$this->loader->add_action('wp_enqueue_scripts', $plugin_public, 'enqueue_styles');
1872
+		$this->loader->add_action('wp_enqueue_scripts', $plugin_public, 'enqueue_scripts');
1873
+		$this->loader->add_action('wp_enqueue_scripts', $this->context_cards_service, 'enqueue_scripts');
1874 1874
 
1875 1875
 		// Registering Faq_Content_Filter service used for removing faq question and answer tags from the html.
1876
-		$this->loader->add_filter( 'the_content', $this->faq_content_filter_service, 'remove_all_faq_question_and_answer_tags' );
1876
+		$this->loader->add_filter('the_content', $this->faq_content_filter_service, 'remove_all_faq_question_and_answer_tags');
1877 1877
 		// Hook the content filter service to add entity links.
1878
-		if ( ! defined( 'WL_DISABLE_CONTENT_FILTER' ) || ! WL_DISABLE_CONTENT_FILTER ) {
1879
-			$this->loader->add_filter( 'the_content', $this->content_filter_service, 'the_content' );
1878
+		if ( ! defined('WL_DISABLE_CONTENT_FILTER') || ! WL_DISABLE_CONTENT_FILTER) {
1879
+			$this->loader->add_filter('the_content', $this->content_filter_service, 'the_content');
1880 1880
 		}
1881 1881
 
1882 1882
 		// Hook the AJAX wl_timeline action to the Timeline service.
1883
-		$this->loader->add_action( 'wp_ajax_nopriv_wl_timeline', $this->timeline_service, 'ajax_timeline' );
1883
+		$this->loader->add_action('wp_ajax_nopriv_wl_timeline', $this->timeline_service, 'ajax_timeline');
1884 1884
 
1885 1885
 		// Hook the ShareThis service.
1886
-		$this->loader->add_filter( 'the_content', $this->sharethis_service, 'the_content', 99 );
1887
-		$this->loader->add_filter( 'the_excerpt', $this->sharethis_service, 'the_excerpt', 99 );
1886
+		$this->loader->add_filter('the_content', $this->sharethis_service, 'the_content', 99);
1887
+		$this->loader->add_filter('the_excerpt', $this->sharethis_service, 'the_excerpt', 99);
1888 1888
 
1889 1889
 		// Hook the AJAX wl_jsonld action to the JSON-LD service.
1890
-		$this->loader->add_action( 'wp_ajax_nopriv_wl_jsonld', $this->jsonld_service, 'get' );
1890
+		$this->loader->add_action('wp_ajax_nopriv_wl_jsonld', $this->jsonld_service, 'get');
1891 1891
 
1892 1892
 		// Hook the `pre_get_posts` action to the `Wordlift_Category_Taxonomy_Service`
1893 1893
 		// in order to tweak WP's `WP_Query` to include entities in queries related
1894 1894
 		// to categories.
1895
-		$this->loader->add_action( 'pre_get_posts', $this->category_taxonomy_service, 'pre_get_posts', 10, 1 );
1895
+		$this->loader->add_action('pre_get_posts', $this->category_taxonomy_service, 'pre_get_posts', 10, 1);
1896 1896
 
1897 1897
 		/*
1898 1898
 		 * Hook the `pre_get_posts` action to the `Wordlift_Entity_Page_Service`
1899 1899
 		 * in order to tweak WP's `WP_Query` to show event related entities in reverse
1900 1900
 		 * order of start time.
1901 1901
 		 */
1902
-		$this->loader->add_action( 'pre_get_posts', $this->entity_page_service, 'pre_get_posts', 10, 1 );
1902
+		$this->loader->add_action('pre_get_posts', $this->entity_page_service, 'pre_get_posts', 10, 1);
1903 1903
 
1904
-		$this->loader->add_action( 'wl_async_wl_run_sparql_query', $this->sparql_service, 'run_sparql_query', 10, 1 );
1904
+		$this->loader->add_action('wl_async_wl_run_sparql_query', $this->sparql_service, 'run_sparql_query', 10, 1);
1905 1905
 
1906 1906
 		// This hook have to run before the rating service, as otherwise the post might not be a proper entity when rating is done.
1907
-		$this->loader->add_action( 'save_post', $this->entity_type_adapter, 'save_post', 9, 3 );
1907
+		$this->loader->add_action('save_post', $this->entity_type_adapter, 'save_post', 9, 3);
1908 1908
 
1909 1909
 		// Analytics Script Frontend.
1910
-		if ( $this->configuration_service->is_analytics_enable() ) {
1911
-			$this->loader->add_action( 'wp_enqueue_scripts', $this->analytics_connect, 'enqueue_scripts', 10 );
1910
+		if ($this->configuration_service->is_analytics_enable()) {
1911
+			$this->loader->add_action('wp_enqueue_scripts', $this->analytics_connect, 'enqueue_scripts', 10);
1912 1912
 		}
1913 1913
 
1914 1914
 	}
@@ -1961,11 +1961,11 @@  discard block
 block discarded – undo
1961 1961
 	 */
1962 1962
 	private function load_cli_dependencies() {
1963 1963
 
1964
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'cli/class-wordlift-push-reference-data-command.php';
1964
+		require_once plugin_dir_path(dirname(__FILE__)).'cli/class-wordlift-push-reference-data-command.php';
1965 1965
 
1966
-		$push_reference_data_command = new Wordlift_Push_Reference_Data_Command( $this->relation_service, $this->entity_service, $this->sparql_service, $this->configuration_service, $this->entity_type_service );
1966
+		$push_reference_data_command = new Wordlift_Push_Reference_Data_Command($this->relation_service, $this->entity_service, $this->sparql_service, $this->configuration_service, $this->entity_type_service);
1967 1967
 
1968
-		WP_CLI::add_command( 'wl references push', $push_reference_data_command );
1968
+		WP_CLI::add_command('wl references push', $push_reference_data_command);
1969 1969
 
1970 1970
 	}
1971 1971
 
Please login to merge, or discard this patch.
Indentation   +1785 added lines, -1785 removed lines patch added patch discarded remove patch
@@ -65,1563 +65,1563 @@  discard block
 block discarded – undo
65 65
  */
66 66
 class Wordlift {
67 67
 
68
-	//<editor-fold desc="## FIELDS">
69
-
70
-	/**
71
-	 * The loader that's responsible for maintaining and registering all hooks that power
72
-	 * the plugin.
73
-	 *
74
-	 * @since    1.0.0
75
-	 * @access   protected
76
-	 * @var      Wordlift_Loader $loader Maintains and registers all hooks for the plugin.
77
-	 */
78
-	protected $loader;
79
-
80
-	/**
81
-	 * The unique identifier of this plugin.
82
-	 *
83
-	 * @since    1.0.0
84
-	 * @access   protected
85
-	 * @var      string $plugin_name The string used to uniquely identify this plugin.
86
-	 */
87
-	protected $plugin_name;
88
-
89
-	/**
90
-	 * The current version of the plugin.
91
-	 *
92
-	 * @since    1.0.0
93
-	 * @access   protected
94
-	 * @var      string $version The current version of the plugin.
95
-	 */
96
-	protected $version;
97
-
98
-	/**
99
-	 * The {@link Wordlift_Tinymce_Adapter} instance.
100
-	 *
101
-	 * @since  3.12.0
102
-	 * @access protected
103
-	 * @var \Wordlift_Tinymce_Adapter $tinymce_adapter The {@link Wordlift_Tinymce_Adapter} instance.
104
-	 */
105
-	protected $tinymce_adapter;
106
-
107
-	/**
108
-	 * The {@link Faq_Tinymce_Adapter} instance
109
-	 * @since 3.26.0
110
-	 * @access protected
111
-	 * @var Faq_Tinymce_Adapter $faq_tinymce_adapter .
112
-	 */
113
-	//protected $faq_tinymce_adapter;
114
-
115
-	/**
116
-	 * The Thumbnail service.
117
-	 *
118
-	 * @since  3.1.5
119
-	 * @access private
120
-	 * @var \Wordlift_Thumbnail_Service $thumbnail_service The Thumbnail service.
121
-	 */
122
-	private $thumbnail_service;
123
-
124
-	/**
125
-	 * The UI service.
126
-	 *
127
-	 * @since  3.2.0
128
-	 * @access private
129
-	 * @var \Wordlift_UI_Service $ui_service The UI service.
130
-	 */
131
-	private $ui_service;
132
-
133
-	/**
134
-	 * The Schema service.
135
-	 *
136
-	 * @since  3.3.0
137
-	 * @access protected
138
-	 * @var \Wordlift_Schema_Service $schema_service The Schema service.
139
-	 */
140
-	protected $schema_service;
141
-
142
-	/**
143
-	 * The Entity service.
144
-	 *
145
-	 * @since  3.1.0
146
-	 * @access protected
147
-	 * @var \Wordlift_Entity_Service $entity_service The Entity service.
148
-	 */
149
-	protected $entity_service;
150
-
151
-	/**
152
-	 * The Topic Taxonomy service.
153
-	 *
154
-	 * @since  3.5.0
155
-	 * @access private
156
-	 * @var \Wordlift_Topic_Taxonomy_Service The Topic Taxonomy service.
157
-	 */
158
-	private $topic_taxonomy_service;
159
-
160
-	/**
161
-	 * The Entity Types Taxonomy service.
162
-	 *
163
-	 * @since  3.18.0
164
-	 * @access private
165
-	 * @var \Wordlift_Entity_Type_Taxonomy_Service The Entity Types Taxonomy service.
166
-	 */
167
-	private $entity_types_taxonomy_service;
168
-
169
-	/**
170
-	 * The User service.
171
-	 *
172
-	 * @since  3.1.7
173
-	 * @access protected
174
-	 * @var \Wordlift_User_Service $user_service The User service.
175
-	 */
176
-	protected $user_service;
177
-
178
-	/**
179
-	 * The Timeline service.
180
-	 *
181
-	 * @since  3.1.0
182
-	 * @access private
183
-	 * @var \Wordlift_Timeline_Service $timeline_service The Timeline service.
184
-	 */
185
-	private $timeline_service;
186
-
187
-	/**
188
-	 * The Redirect service.
189
-	 *
190
-	 * @since  3.2.0
191
-	 * @access private
192
-	 * @var \Wordlift_Redirect_Service $redirect_service The Redirect service.
193
-	 */
194
-	private $redirect_service;
195
-
196
-	/**
197
-	 * The Notice service.
198
-	 *
199
-	 * @since  3.3.0
200
-	 * @access private
201
-	 * @var \Wordlift_Notice_Service $notice_service The Notice service.
202
-	 */
203
-	private $notice_service;
204
-
205
-	/**
206
-	 * The Entity list customization.
207
-	 *
208
-	 * @since  3.3.0
209
-	 * @access protected
210
-	 * @var \Wordlift_Entity_List_Service $entity_list_service The Entity list service.
211
-	 */
212
-	protected $entity_list_service;
213
-
214
-	/**
215
-	 * The Entity Types Taxonomy Walker.
216
-	 *
217
-	 * @since  3.1.0
218
-	 * @access private
219
-	 * @var \Wordlift_Entity_Types_Taxonomy_Walker $entity_types_taxonomy_walker The Entity Types Taxonomy Walker
220
-	 */
221
-	private $entity_types_taxonomy_walker;
222
-
223
-	/**
224
-	 * The ShareThis service.
225
-	 *
226
-	 * @since  3.2.0
227
-	 * @access private
228
-	 * @var \Wordlift_ShareThis_Service $sharethis_service The ShareThis service.
229
-	 */
230
-	private $sharethis_service;
231
-
232
-	/**
233
-	 * The PrimaShop adapter.
234
-	 *
235
-	 * @since  3.2.3
236
-	 * @access private
237
-	 * @var \Wordlift_PrimaShop_Adapter $primashop_adapter The PrimaShop adapter.
238
-	 */
239
-	private $primashop_adapter;
240
-
241
-	/**
242
-	 * The WordLift Dashboard adapter.
243
-	 *
244
-	 * @since  3.4.0
245
-	 * @access private
246
-	 * @var \Wordlift_Dashboard_Service $dashboard_service The WordLift Dashboard service;
247
-	 */
248
-	private $dashboard_service;
249
-
250
-	/**
251
-	 * The entity type service.
252
-	 *
253
-	 * @since  3.6.0
254
-	 * @access private
255
-	 * @var \Wordlift_Entity_Post_Type_Service
256
-	 */
257
-	private $entity_post_type_service;
258
-
259
-	/**
260
-	 * The entity link service used to mangle links to entities with a custom slug or even w/o a slug.
261
-	 *
262
-	 * @since  3.6.0
263
-	 * @access private
264
-	 * @var \Wordlift_Entity_Link_Service $entity_link_service The {@link Wordlift_Entity_Link_Service} instance.
265
-	 */
266
-	private $entity_link_service;
267
-
268
-	/**
269
-	 * A {@link Wordlift_Sparql_Service} instance.
270
-	 *
271
-	 * @since    3.6.0
272
-	 * @access   protected
273
-	 * @var \Wordlift_Sparql_Service $sparql_service A {@link Wordlift_Sparql_Service} instance.
274
-	 */
275
-	protected $sparql_service;
276
-
277
-	/**
278
-	 * A {@link Wordlift_Import_Service} instance.
279
-	 *
280
-	 * @since  3.6.0
281
-	 * @access private
282
-	 * @var \Wordlift_Import_Service $import_service A {@link Wordlift_Import_Service} instance.
283
-	 */
284
-	private $import_service;
285
-
286
-	/**
287
-	 * A {@link Wordlift_Rebuild_Service} instance.
288
-	 *
289
-	 * @since  3.6.0
290
-	 * @access private
291
-	 * @var \Wordlift_Rebuild_Service $rebuild_service A {@link Wordlift_Rebuild_Service} instance.
292
-	 */
293
-	private $rebuild_service;
294
-
295
-	/**
296
-	 * A {@link Wordlift_Jsonld_Service} instance.
297
-	 *
298
-	 * @since  3.7.0
299
-	 * @access protected
300
-	 * @var \Wordlift_Jsonld_Service $jsonld_service A {@link Wordlift_Jsonld_Service} instance.
301
-	 */
302
-	protected $jsonld_service;
303
-
304
-	/**
305
-	 * A {@link Wordlift_Website_Jsonld_Converter} instance.
306
-	 *
307
-	 * @since  3.14.0
308
-	 * @access protected
309
-	 * @var \Wordlift_Website_Jsonld_Converter $jsonld_website_converter A {@link Wordlift_Website_Jsonld_Converter} instance.
310
-	 */
311
-	protected $jsonld_website_converter;
312
-
313
-	/**
314
-	 * A {@link Wordlift_Property_Factory} instance.
315
-	 *
316
-	 * @since  3.7.0
317
-	 * @access private
318
-	 * @var \Wordlift_Property_Factory $property_factory
319
-	 */
320
-	private $property_factory;
321
-
322
-	/**
323
-	 * The 'Download Your Data' page.
324
-	 *
325
-	 * @since  3.6.0
326
-	 * @access private
327
-	 * @var \Wordlift_Admin_Download_Your_Data_Page $download_your_data_page The 'Download Your Data' page.
328
-	 */
329
-	private $download_your_data_page;
330
-
331
-	/**
332
-	 * The 'WordLift Settings' page.
333
-	 *
334
-	 * @since  3.11.0
335
-	 * @access protected
336
-	 * @var \Wordlift_Admin_Settings_Page $settings_page The 'WordLift Settings' page.
337
-	 */
338
-	protected $settings_page;
339
-
340
-	/**
341
-	 * The install wizard page.
342
-	 *
343
-	 * @since  3.9.0
344
-	 * @access private
345
-	 * @var \Wordlift_Admin_Setup $admin_setup The Install wizard.
346
-	 */
347
-	public $admin_setup;
348
-
349
-	/**
350
-	 * The Content Filter Service hooks up to the 'the_content' filter and provides
351
-	 * linking of entities to their pages.
352
-	 *
353
-	 * @since  3.8.0
354
-	 * @access private
355
-	 * @var \Wordlift_Content_Filter_Service $content_filter_service A {@link Wordlift_Content_Filter_Service} instance.
356
-	 */
357
-	private $content_filter_service;
358
-
359
-	/**
360
-	 * The Faq Content filter service
361
-	 * @since  3.26.0
362
-	 * @access private
363
-	 * @var Faq_Content_Filter $faq_content_filter_service A {@link Faq_Content_Filter} instance.
364
-	 */
365
-	private $faq_content_filter_service;
366
-
367
-	/**
368
-	 * A {@link Wordlift_Key_Validation_Service} instance.
369
-	 *
370
-	 * @since  3.9.0
371
-	 * @access private
372
-	 * @var Wordlift_Key_Validation_Service $key_validation_service A {@link Wordlift_Key_Validation_Service} instance.
373
-	 */
374
-	private $key_validation_service;
375
-
376
-	/**
377
-	 * A {@link Wordlift_Rating_Service} instance.
378
-	 *
379
-	 * @since  3.10.0
380
-	 * @access private
381
-	 * @var \Wordlift_Rating_Service $rating_service A {@link Wordlift_Rating_Service} instance.
382
-	 */
383
-	private $rating_service;
384
-
385
-	/**
386
-	 * A {@link Wordlift_Post_To_Jsonld_Converter} instance.
387
-	 *
388
-	 * @since  3.10.0
389
-	 * @access protected
390
-	 * @var \Wordlift_Post_To_Jsonld_Converter $post_to_jsonld_converter A {@link Wordlift_Post_To_Jsonld_Converter} instance.
391
-	 */
392
-	protected $post_to_jsonld_converter;
393
-
394
-	/**
395
-	 * A {@link Wordlift_Configuration_Service} instance.
396
-	 *
397
-	 * @since  3.10.0
398
-	 * @access protected
399
-	 * @var \Wordlift_Configuration_Service $configuration_service A {@link Wordlift_Configuration_Service} instance.
400
-	 */
401
-	protected $configuration_service;
402
-
403
-	/**
404
-	 * A {@link Wordlift_Install_Service} instance.
405
-	 *
406
-	 * @since  3.18.0
407
-	 * @access protected
408
-	 * @var \Wordlift_Install_Service $install_service A {@link Wordlift_Install_Service} instance.
409
-	 */
410
-	protected $install_service;
411
-
412
-	/**
413
-	 * A {@link Wordlift_Entity_Type_Service} instance.
414
-	 *
415
-	 * @since  3.10.0
416
-	 * @access protected
417
-	 * @var \Wordlift_Entity_Type_Service $entity_type_service A {@link Wordlift_Entity_Type_Service} instance.
418
-	 */
419
-	protected $entity_type_service;
420
-
421
-	/**
422
-	 * A {@link Wordlift_Entity_Post_To_Jsonld_Converter} instance.
423
-	 *
424
-	 * @since  3.10.0
425
-	 * @access protected
426
-	 * @var \Wordlift_Entity_Post_To_Jsonld_Converter $entity_post_to_jsonld_converter A {@link Wordlift_Entity_Post_To_Jsonld_Converter} instance.
427
-	 */
428
-	protected $entity_post_to_jsonld_converter;
429
-
430
-	/**
431
-	 * A {@link Wordlift_Postid_To_Jsonld_Converter} instance.
432
-	 *
433
-	 * @since  3.10.0
434
-	 * @access protected
435
-	 * @var \Wordlift_Postid_To_Jsonld_Converter $postid_to_jsonld_converter A {@link Wordlift_Postid_To_Jsonld_Converter} instance.
436
-	 */
437
-	protected $postid_to_jsonld_converter;
438
-
439
-	/**
440
-	 * The {@link Wordlift_Admin_Status_Page} class.
441
-	 *
442
-	 * @since  3.9.8
443
-	 * @access private
444
-	 * @var \Wordlift_Admin_Status_Page $status_page The {@link Wordlift_Admin_Status_Page} class.
445
-	 */
446
-	private $status_page;
447
-
448
-	/**
449
-	 * The {@link Wordlift_Category_Taxonomy_Service} instance.
450
-	 *
451
-	 * @since  3.11.0
452
-	 * @access protected
453
-	 * @var \Wordlift_Category_Taxonomy_Service $category_taxonomy_service The {@link Wordlift_Category_Taxonomy_Service} instance.
454
-	 */
455
-	protected $category_taxonomy_service;
456
-
457
-	/**
458
-	 * The {@link Wordlift_Entity_Page_Service} instance.
459
-	 *
460
-	 * @since  3.11.0
461
-	 * @access protected
462
-	 * @var \Wordlift_Entity_Page_Service $entity_page_service The {@link Wordlift_Entity_Page_Service} instance.
463
-	 */
464
-	protected $entity_page_service;
465
-
466
-	/**
467
-	 * The {@link Wordlift_Admin_Settings_Page_Action_Link} class.
468
-	 *
469
-	 * @since  3.11.0
470
-	 * @access protected
471
-	 * @var \Wordlift_Admin_Settings_Page_Action_Link $settings_page_action_link The {@link Wordlift_Admin_Settings_Page_Action_Link} class.
472
-	 */
473
-	protected $settings_page_action_link;
474
-
475
-	/**
476
-	 * The {@link Wordlift_Admin_Settings_Page_Action_Link} class.
477
-	 *
478
-	 * @since  3.11.0
479
-	 * @access protected
480
-	 * @var \Wordlift_Admin_Settings_Page_Action_Link $settings_page_action_link The {@link Wordlift_Admin_Settings_Page_Action_Link} class.
481
-	 */
482
-	protected $analytics_settings_page_action_link;
483
-
484
-	/**
485
-	 * The {@link Wordlift_Analytics_Connect} class.
486
-	 *
487
-	 * @since  3.11.0
488
-	 * @access protected
489
-	 * @var \Wordlift_Analytics_Connect $analytics_connect The {@link Wordlift_Analytics_Connect} class.
490
-	 */
491
-	protected $analytics_connect;
492
-
493
-	/**
494
-	 * The {@link Wordlift_Publisher_Ajax_Adapter} instance.
495
-	 *
496
-	 * @since  3.11.0
497
-	 * @access protected
498
-	 * @var \Wordlift_Publisher_Ajax_Adapter $publisher_ajax_adapter The {@link Wordlift_Publisher_Ajax_Adapter} instance.
499
-	 */
500
-	protected $publisher_ajax_adapter;
501
-
502
-	/**
503
-	 * The {@link Wordlift_Admin_Input_Element} element renderer.
504
-	 *
505
-	 * @since  3.11.0
506
-	 * @access protected
507
-	 * @var \Wordlift_Admin_Input_Element $input_element The {@link Wordlift_Admin_Input_Element} element renderer.
508
-	 */
509
-	protected $input_element;
510
-
511
-	/**
512
-	 * The {@link Wordlift_Admin_Radio_Input_Element} element renderer.
513
-	 *
514
-	 * @since  3.13.0
515
-	 * @access protected
516
-	 * @var \Wordlift_Admin_Radio_Input_Element $radio_input_element The {@link Wordlift_Admin_Radio_Input_Element} element renderer.
517
-	 */
518
-	protected $radio_input_element;
519
-
520
-	/**
521
-	 * The {@link Wordlift_Admin_Language_Select_Element} element renderer.
522
-	 *
523
-	 * @since  3.11.0
524
-	 * @access protected
525
-	 * @var \Wordlift_Admin_Language_Select_Element $language_select_element The {@link Wordlift_Admin_Language_Select_Element} element renderer.
526
-	 */
527
-	protected $language_select_element;
528
-
529
-	/**
530
-	 * The {@link Wordlift_Admin_Country_Select_Element} element renderer.
531
-	 *
532
-	 * @since  3.18.0
533
-	 * @access protected
534
-	 * @var \Wordlift_Admin_Country_Select_Element $country_select_element The {@link Wordlift_Admin_Country_Select_Element} element renderer.
535
-	 */
536
-	protected $country_select_element;
537
-
538
-	/**
539
-	 * The {@link Wordlift_Admin_Publisher_Element} element renderer.
540
-	 *
541
-	 * @since  3.11.0
542
-	 * @access protected
543
-	 * @var \Wordlift_Admin_Publisher_Element $publisher_element The {@link Wordlift_Admin_Publisher_Element} element renderer.
544
-	 */
545
-	protected $publisher_element;
546
-
547
-	/**
548
-	 * The {@link Wordlift_Admin_Select2_Element} element renderer.
549
-	 *
550
-	 * @since  3.11.0
551
-	 * @access protected
552
-	 * @var \Wordlift_Admin_Select2_Element $select2_element The {@link Wordlift_Admin_Select2_Element} element renderer.
553
-	 */
554
-	protected $select2_element;
555
-
556
-	/**
557
-	 * The controller for the entity type list admin page
558
-	 *
559
-	 * @since  3.11.0
560
-	 * @access private
561
-	 * @var \Wordlift_Admin_Entity_Taxonomy_List_Page $entity_type_admin_page The {@link Wordlift_Admin_Entity_Taxonomy_List_Page} class.
562
-	 */
563
-	private $entity_type_admin_page;
564
-
565
-	/**
566
-	 * The controller for the entity type settings admin page
567
-	 *
568
-	 * @since  3.11.0
569
-	 * @access private
570
-	 * @var \Wordlift_Admin_Entity_Type_Settings $entity_type_settings_admin_page The {@link Wordlift_Admin_Entity_Type_Settings} class.
571
-	 */
572
-	private $entity_type_settings_admin_page;
573
-
574
-	/**
575
-	 * The {@link Wordlift_Related_Entities_Cloud_Widget} instance.
576
-	 *
577
-	 * @since  3.11.0
578
-	 * @access protected
579
-	 * @var \Wordlift_Related_Entities_Cloud_Widget $related_entities_cloud_widget The {@link Wordlift_Related_Entities_Cloud_Widget} instance.
580
-	 */
581
-	protected $related_entities_cloud_widget;
582
-
583
-	/**
584
-	 * The {@link Wordlift_Admin_Author_Element} instance.
585
-	 *
586
-	 * @since  3.14.0
587
-	 * @access protected
588
-	 * @var \Wordlift_Admin_Author_Element $author_element The {@link Wordlift_Admin_Author_Element} instance.
589
-	 */
590
-	protected $author_element;
591
-
592
-	/**
593
-	 * The {@link Wordlift_Sample_Data_Service} instance.
594
-	 *
595
-	 * @since  3.12.0
596
-	 * @access protected
597
-	 * @var \Wordlift_Sample_Data_Service $sample_data_service The {@link Wordlift_Sample_Data_Service} instance.
598
-	 */
599
-	protected $sample_data_service;
600
-
601
-	/**
602
-	 * The {@link Wordlift_Sample_Data_Ajax_Adapter} instance.
603
-	 *
604
-	 * @since  3.12.0
605
-	 * @access protected
606
-	 * @var \Wordlift_Sample_Data_Ajax_Adapter $sample_data_ajax_adapter The {@link Wordlift_Sample_Data_Ajax_Adapter} instance.
607
-	 */
608
-	protected $sample_data_ajax_adapter;
609
-
610
-	/**
611
-	 * The {@link Wordlift_Relation_Rebuild_Service} instance.
612
-	 *
613
-	 * @since  3.14.3
614
-	 * @access private
615
-	 * @var \Wordlift_Relation_Rebuild_Service $relation_rebuild_service The {@link Wordlift_Relation_Rebuild_Service} instance.
616
-	 */
617
-	private $relation_rebuild_service;
618
-
619
-	/**
620
-	 * The {@link Wordlift_Relation_Rebuild_Adapter} instance.
621
-	 *
622
-	 * @since  3.14.3
623
-	 * @access private
624
-	 * @var \Wordlift_Relation_Rebuild_Adapter $relation_rebuild_adapter The {@link Wordlift_Relation_Rebuild_Adapter} instance.
625
-	 */
626
-	private $relation_rebuild_adapter;
627
-
628
-	/**
629
-	 * The {@link Wordlift_Reference_Rebuild_Service} instance.
630
-	 *
631
-	 * @since  3.18.0
632
-	 * @access private
633
-	 * @var \Wordlift_Reference_Rebuild_Service $reference_rebuild_service The {@link Wordlift_Reference_Rebuild_Service} instance.
634
-	 */
635
-	private $reference_rebuild_service;
636
-
637
-	/**
638
-	 * The {@link Wordlift_Google_Analytics_Export_Service} instance.
639
-	 *
640
-	 * @since  3.16.0
641
-	 * @access protected
642
-	 * @var \Wordlift_Google_Analytics_Export_Service $google_analytics_export_service The {@link Wordlift_Google_Analytics_Export_Service} instance.
643
-	 */
644
-	protected $google_analytics_export_service;
645
-
646
-	/**
647
-	 * {@link Wordlift}'s singleton instance.
648
-	 *
649
-	 * @since  3.15.0
650
-	 * @access protected
651
-	 * @var \Wordlift_Entity_Type_Adapter $entity_type_adapter The {@link Wordlift_Entity_Type_Adapter} instance.
652
-	 */
653
-	protected $entity_type_adapter;
654
-
655
-	/**
656
-	 * The {@link Wordlift_Storage_Factory} instance.
657
-	 *
658
-	 * @since  3.15.0
659
-	 * @access protected
660
-	 * @var \Wordlift_Storage_Factory $storage_factory The {@link Wordlift_Storage_Factory} instance.
661
-	 */
662
-	protected $storage_factory;
663
-
664
-	/**
665
-	 * The {@link Wordlift_Sparql_Tuple_Rendition_Factory} instance.
666
-	 *
667
-	 * @since  3.15.0
668
-	 * @access protected
669
-	 * @var \Wordlift_Sparql_Tuple_Rendition_Factory $rendition_factory The {@link Wordlift_Sparql_Tuple_Rendition_Factory} instance.
670
-	 */
671
-	protected $rendition_factory;
672
-
673
-	/**
674
-	 * The {@link Wordlift_Autocomplete_Adapter} instance.
675
-	 *
676
-	 * @since  3.15.0
677
-	 * @access private
678
-	 * @var \Wordlift_Autocomplete_Adapter $autocomplete_adapter The {@link Wordlift_Autocomplete_Adapter} instance.
679
-	 */
680
-	private $autocomplete_adapter;
681
-
682
-	/**
683
-	 * The {@link Wordlift_Relation_Service} instance.
684
-	 *
685
-	 * @since  3.15.0
686
-	 * @access protected
687
-	 * @var \Wordlift_Relation_Service $relation_service The {@link Wordlift_Relation_Service} instance.
688
-	 */
689
-	protected $relation_service;
690
-
691
-	/**
692
-	 * The {@link Wordlift_Cached_Post_Converter} instance.
693
-	 *
694
-	 * @since  3.16.0
695
-	 * @access protected
696
-	 * @var  \Wordlift_Cached_Post_Converter $cached_postid_to_jsonld_converter The {@link Wordlift_Cached_Post_Converter} instance.
697
-	 *
698
-	 */
699
-	protected $cached_postid_to_jsonld_converter;
700
-
701
-	/**
702
-	 * The {@link Wordlift_Entity_Uri_Service} instance.
703
-	 *
704
-	 * @since  3.16.3
705
-	 * @access protected
706
-	 * @var \Wordlift_Entity_Uri_Service $entity_uri_service The {@link Wordlift_Entity_Uri_Service} instance.
707
-	 */
708
-	protected $entity_uri_service;
709
-
710
-	/**
711
-	 * The {@link Wordlift_Publisher_Service} instance.
712
-	 *
713
-	 * @since  3.19.0
714
-	 * @access protected
715
-	 * @var \Wordlift_Publisher_Service $publisher_service The {@link Wordlift_Publisher_Service} instance.
716
-	 */
717
-	protected $publisher_service;
718
-
719
-	/**
720
-	 * The {@link Wordlift_Context_Cards_Service} instance.
721
-	 *
722
-	 * @var \Wordlift_Context_Cards_Service The {@link Wordlift_Context_Cards_Service} instance.
723
-	 */
724
-	protected $context_cards_service;
725
-
726
-	/**
727
-	 * {@link Wordlift}'s singleton instance.
728
-	 *
729
-	 * @since  3.11.2
730
-	 * @access private
731
-	 * @var Wordlift $instance {@link Wordlift}'s singleton instance.
732
-	 */
733
-	private static $instance;
734
-
735
-	//</editor-fold>
736
-
737
-	/**
738
-	 * Define the core functionality of the plugin.
739
-	 *
740
-	 * Set the plugin name and the plugin version that can be used throughout the plugin.
741
-	 * Load the dependencies, define the locale, and set the hooks for the admin area and
742
-	 * the public-facing side of the site.
743
-	 *
744
-	 * @since    1.0.0
745
-	 */
746
-	public function __construct() {
747
-
748
-		self::$instance = $this;
749
-
750
-		$this->plugin_name = 'wordlift';
751
-		$this->version     = '3.27.6.3';
752
-		$this->load_dependencies();
753
-		$this->set_locale();
754
-		$this->define_admin_hooks();
755
-		$this->define_public_hooks();
756
-
757
-		// If we're in `WP_CLI` load the related files.
758
-		if ( class_exists( 'WP_CLI' ) ) {
759
-			$this->load_cli_dependencies();
760
-		}
761
-
762
-	}
763
-
764
-	/**
765
-	 * Get the singleton instance.
766
-	 *
767
-	 * @return Wordlift The {@link Wordlift} singleton instance.
768
-	 * @since 3.11.2
769
-	 *
770
-	 */
771
-	public static function get_instance() {
772
-
773
-		return self::$instance;
774
-	}
775
-
776
-	/**
777
-	 * Load the required dependencies for this plugin.
778
-	 *
779
-	 * Include the following files that make up the plugin:
780
-	 *
781
-	 * - Wordlift_Loader. Orchestrates the hooks of the plugin.
782
-	 * - Wordlift_i18n. Defines internationalization functionality.
783
-	 * - Wordlift_Admin. Defines all hooks for the admin area.
784
-	 * - Wordlift_Public. Defines all hooks for the public side of the site.
785
-	 *
786
-	 * Create an instance of the loader which will be used to register the hooks
787
-	 * with WordPress.
788
-	 *
789
-	 * @throws Exception
790
-	 * @since    1.0.0
791
-	 * @access   private
792
-	 */
793
-	private function load_dependencies() {
794
-
795
-		/**
796
-		 * The class responsible for orchestrating the actions and filters of the
797
-		 * core plugin.
798
-		 */
799
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-loader.php';
800
-
801
-		// The class responsible for plugin uninstall.
802
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-deactivator-feedback.php';
803
-
804
-		/**
805
-		 * The class responsible for defining internationalization functionality
806
-		 * of the plugin.
807
-		 */
808
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-i18n.php';
809
-
810
-		/**
811
-		 * WordLift's supported languages.
812
-		 */
813
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-languages.php';
814
-
815
-		/**
816
-		 * WordLift's supported countries.
817
-		 */
818
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-countries.php';
819
-
820
-		/**
821
-		 * Provide support functions to sanitize data.
822
-		 */
823
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-sanitizer.php';
824
-
825
-		/** Services. */
826
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-log-service.php';
827
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-http-api.php';
828
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-redirect-service.php';
829
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-configuration-service.php';
830
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-post-type-service.php';
831
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-type-service.php';
832
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-link-service.php';
833
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-linked-data-service.php';
834
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-relation-service.php';
835
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-image-service.php';
836
-
837
-		/**
838
-		 * The Query builder.
839
-		 */
840
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-query-builder.php';
841
-
842
-		/**
843
-		 * The Schema service.
844
-		 */
845
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-schema-service.php';
846
-
847
-		/**
848
-		 * The schema:url property service.
849
-		 */
850
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-property-service.php';
851
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-schema-url-property-service.php';
852
-
853
-		/**
854
-		 * The UI service.
855
-		 */
856
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-ui-service.php';
857
-
858
-		/**
859
-		 * The Thumbnail service.
860
-		 */
861
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-thumbnail-service.php';
862
-
863
-		/**
864
-		 * The Entity Types Taxonomy service.
865
-		 */
866
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-type-taxonomy-service.php';
867
-
868
-		/**
869
-		 * The Entity service.
870
-		 */
871
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-uri-service.php';
872
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-service.php';
873
-
874
-		// Add the entity rating service.
875
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-rating-service.php';
876
-
877
-		/**
878
-		 * The User service.
879
-		 */
880
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-user-service.php';
881
-
882
-		/**
883
-		 * The Timeline service.
884
-		 */
885
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-timeline-service.php';
886
-
887
-		/**
888
-		 * The Topic Taxonomy service.
889
-		 */
890
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-topic-taxonomy-service.php';
891
-
892
-		/**
893
-		 * The SPARQL service.
894
-		 */
895
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-sparql-service.php';
896
-
897
-		/**
898
-		 * The WordLift import service.
899
-		 */
900
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-import-service.php';
901
-
902
-		/**
903
-		 * The WordLift URI service.
904
-		 */
905
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-uri-service.php';
906
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-property-factory.php';
907
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-sample-data-service.php';
908
-
909
-		/**
910
-		 * The WordLift rebuild service, used to rebuild the remote dataset using the local data.
911
-		 */
912
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/rebuild/class-wordlift-listable.php';
913
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/rebuild/class-wordlift-rebuild-service.php';
914
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/rebuild/class-wordlift-reference-rebuild-service.php';
915
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/rebuild/class-wordlift-relation-rebuild-service.php';
916
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/rebuild/class-wordlift-relation-rebuild-adapter.php';
917
-
918
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/properties/class-wordlift-property-getter-factory.php';
919
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-attachment-service.php';
920
-
921
-		/**
922
-		 * Load the converters.
923
-		 */
924
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/intf-wordlift-post-converter.php';
925
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-abstract-post-to-jsonld-converter.php';
926
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-postid-to-jsonld-converter.php';
927
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-post-to-jsonld-converter.php';
928
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-post-to-jsonld-converter.php';
929
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-jsonld-website-converter.php';
930
-
931
-		/**
932
-		 * Load cache-related files.
933
-		 */
934
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/cache/require.php';
935
-
936
-		/**
937
-		 * Load the content filter.
938
-		 */
939
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-content-filter-service.php';
940
-
941
-		/*
68
+    //<editor-fold desc="## FIELDS">
69
+
70
+    /**
71
+     * The loader that's responsible for maintaining and registering all hooks that power
72
+     * the plugin.
73
+     *
74
+     * @since    1.0.0
75
+     * @access   protected
76
+     * @var      Wordlift_Loader $loader Maintains and registers all hooks for the plugin.
77
+     */
78
+    protected $loader;
79
+
80
+    /**
81
+     * The unique identifier of this plugin.
82
+     *
83
+     * @since    1.0.0
84
+     * @access   protected
85
+     * @var      string $plugin_name The string used to uniquely identify this plugin.
86
+     */
87
+    protected $plugin_name;
88
+
89
+    /**
90
+     * The current version of the plugin.
91
+     *
92
+     * @since    1.0.0
93
+     * @access   protected
94
+     * @var      string $version The current version of the plugin.
95
+     */
96
+    protected $version;
97
+
98
+    /**
99
+     * The {@link Wordlift_Tinymce_Adapter} instance.
100
+     *
101
+     * @since  3.12.0
102
+     * @access protected
103
+     * @var \Wordlift_Tinymce_Adapter $tinymce_adapter The {@link Wordlift_Tinymce_Adapter} instance.
104
+     */
105
+    protected $tinymce_adapter;
106
+
107
+    /**
108
+     * The {@link Faq_Tinymce_Adapter} instance
109
+     * @since 3.26.0
110
+     * @access protected
111
+     * @var Faq_Tinymce_Adapter $faq_tinymce_adapter .
112
+     */
113
+    //protected $faq_tinymce_adapter;
114
+
115
+    /**
116
+     * The Thumbnail service.
117
+     *
118
+     * @since  3.1.5
119
+     * @access private
120
+     * @var \Wordlift_Thumbnail_Service $thumbnail_service The Thumbnail service.
121
+     */
122
+    private $thumbnail_service;
123
+
124
+    /**
125
+     * The UI service.
126
+     *
127
+     * @since  3.2.0
128
+     * @access private
129
+     * @var \Wordlift_UI_Service $ui_service The UI service.
130
+     */
131
+    private $ui_service;
132
+
133
+    /**
134
+     * The Schema service.
135
+     *
136
+     * @since  3.3.0
137
+     * @access protected
138
+     * @var \Wordlift_Schema_Service $schema_service The Schema service.
139
+     */
140
+    protected $schema_service;
141
+
142
+    /**
143
+     * The Entity service.
144
+     *
145
+     * @since  3.1.0
146
+     * @access protected
147
+     * @var \Wordlift_Entity_Service $entity_service The Entity service.
148
+     */
149
+    protected $entity_service;
150
+
151
+    /**
152
+     * The Topic Taxonomy service.
153
+     *
154
+     * @since  3.5.0
155
+     * @access private
156
+     * @var \Wordlift_Topic_Taxonomy_Service The Topic Taxonomy service.
157
+     */
158
+    private $topic_taxonomy_service;
159
+
160
+    /**
161
+     * The Entity Types Taxonomy service.
162
+     *
163
+     * @since  3.18.0
164
+     * @access private
165
+     * @var \Wordlift_Entity_Type_Taxonomy_Service The Entity Types Taxonomy service.
166
+     */
167
+    private $entity_types_taxonomy_service;
168
+
169
+    /**
170
+     * The User service.
171
+     *
172
+     * @since  3.1.7
173
+     * @access protected
174
+     * @var \Wordlift_User_Service $user_service The User service.
175
+     */
176
+    protected $user_service;
177
+
178
+    /**
179
+     * The Timeline service.
180
+     *
181
+     * @since  3.1.0
182
+     * @access private
183
+     * @var \Wordlift_Timeline_Service $timeline_service The Timeline service.
184
+     */
185
+    private $timeline_service;
186
+
187
+    /**
188
+     * The Redirect service.
189
+     *
190
+     * @since  3.2.0
191
+     * @access private
192
+     * @var \Wordlift_Redirect_Service $redirect_service The Redirect service.
193
+     */
194
+    private $redirect_service;
195
+
196
+    /**
197
+     * The Notice service.
198
+     *
199
+     * @since  3.3.0
200
+     * @access private
201
+     * @var \Wordlift_Notice_Service $notice_service The Notice service.
202
+     */
203
+    private $notice_service;
204
+
205
+    /**
206
+     * The Entity list customization.
207
+     *
208
+     * @since  3.3.0
209
+     * @access protected
210
+     * @var \Wordlift_Entity_List_Service $entity_list_service The Entity list service.
211
+     */
212
+    protected $entity_list_service;
213
+
214
+    /**
215
+     * The Entity Types Taxonomy Walker.
216
+     *
217
+     * @since  3.1.0
218
+     * @access private
219
+     * @var \Wordlift_Entity_Types_Taxonomy_Walker $entity_types_taxonomy_walker The Entity Types Taxonomy Walker
220
+     */
221
+    private $entity_types_taxonomy_walker;
222
+
223
+    /**
224
+     * The ShareThis service.
225
+     *
226
+     * @since  3.2.0
227
+     * @access private
228
+     * @var \Wordlift_ShareThis_Service $sharethis_service The ShareThis service.
229
+     */
230
+    private $sharethis_service;
231
+
232
+    /**
233
+     * The PrimaShop adapter.
234
+     *
235
+     * @since  3.2.3
236
+     * @access private
237
+     * @var \Wordlift_PrimaShop_Adapter $primashop_adapter The PrimaShop adapter.
238
+     */
239
+    private $primashop_adapter;
240
+
241
+    /**
242
+     * The WordLift Dashboard adapter.
243
+     *
244
+     * @since  3.4.0
245
+     * @access private
246
+     * @var \Wordlift_Dashboard_Service $dashboard_service The WordLift Dashboard service;
247
+     */
248
+    private $dashboard_service;
249
+
250
+    /**
251
+     * The entity type service.
252
+     *
253
+     * @since  3.6.0
254
+     * @access private
255
+     * @var \Wordlift_Entity_Post_Type_Service
256
+     */
257
+    private $entity_post_type_service;
258
+
259
+    /**
260
+     * The entity link service used to mangle links to entities with a custom slug or even w/o a slug.
261
+     *
262
+     * @since  3.6.0
263
+     * @access private
264
+     * @var \Wordlift_Entity_Link_Service $entity_link_service The {@link Wordlift_Entity_Link_Service} instance.
265
+     */
266
+    private $entity_link_service;
267
+
268
+    /**
269
+     * A {@link Wordlift_Sparql_Service} instance.
270
+     *
271
+     * @since    3.6.0
272
+     * @access   protected
273
+     * @var \Wordlift_Sparql_Service $sparql_service A {@link Wordlift_Sparql_Service} instance.
274
+     */
275
+    protected $sparql_service;
276
+
277
+    /**
278
+     * A {@link Wordlift_Import_Service} instance.
279
+     *
280
+     * @since  3.6.0
281
+     * @access private
282
+     * @var \Wordlift_Import_Service $import_service A {@link Wordlift_Import_Service} instance.
283
+     */
284
+    private $import_service;
285
+
286
+    /**
287
+     * A {@link Wordlift_Rebuild_Service} instance.
288
+     *
289
+     * @since  3.6.0
290
+     * @access private
291
+     * @var \Wordlift_Rebuild_Service $rebuild_service A {@link Wordlift_Rebuild_Service} instance.
292
+     */
293
+    private $rebuild_service;
294
+
295
+    /**
296
+     * A {@link Wordlift_Jsonld_Service} instance.
297
+     *
298
+     * @since  3.7.0
299
+     * @access protected
300
+     * @var \Wordlift_Jsonld_Service $jsonld_service A {@link Wordlift_Jsonld_Service} instance.
301
+     */
302
+    protected $jsonld_service;
303
+
304
+    /**
305
+     * A {@link Wordlift_Website_Jsonld_Converter} instance.
306
+     *
307
+     * @since  3.14.0
308
+     * @access protected
309
+     * @var \Wordlift_Website_Jsonld_Converter $jsonld_website_converter A {@link Wordlift_Website_Jsonld_Converter} instance.
310
+     */
311
+    protected $jsonld_website_converter;
312
+
313
+    /**
314
+     * A {@link Wordlift_Property_Factory} instance.
315
+     *
316
+     * @since  3.7.0
317
+     * @access private
318
+     * @var \Wordlift_Property_Factory $property_factory
319
+     */
320
+    private $property_factory;
321
+
322
+    /**
323
+     * The 'Download Your Data' page.
324
+     *
325
+     * @since  3.6.0
326
+     * @access private
327
+     * @var \Wordlift_Admin_Download_Your_Data_Page $download_your_data_page The 'Download Your Data' page.
328
+     */
329
+    private $download_your_data_page;
330
+
331
+    /**
332
+     * The 'WordLift Settings' page.
333
+     *
334
+     * @since  3.11.0
335
+     * @access protected
336
+     * @var \Wordlift_Admin_Settings_Page $settings_page The 'WordLift Settings' page.
337
+     */
338
+    protected $settings_page;
339
+
340
+    /**
341
+     * The install wizard page.
342
+     *
343
+     * @since  3.9.0
344
+     * @access private
345
+     * @var \Wordlift_Admin_Setup $admin_setup The Install wizard.
346
+     */
347
+    public $admin_setup;
348
+
349
+    /**
350
+     * The Content Filter Service hooks up to the 'the_content' filter and provides
351
+     * linking of entities to their pages.
352
+     *
353
+     * @since  3.8.0
354
+     * @access private
355
+     * @var \Wordlift_Content_Filter_Service $content_filter_service A {@link Wordlift_Content_Filter_Service} instance.
356
+     */
357
+    private $content_filter_service;
358
+
359
+    /**
360
+     * The Faq Content filter service
361
+     * @since  3.26.0
362
+     * @access private
363
+     * @var Faq_Content_Filter $faq_content_filter_service A {@link Faq_Content_Filter} instance.
364
+     */
365
+    private $faq_content_filter_service;
366
+
367
+    /**
368
+     * A {@link Wordlift_Key_Validation_Service} instance.
369
+     *
370
+     * @since  3.9.0
371
+     * @access private
372
+     * @var Wordlift_Key_Validation_Service $key_validation_service A {@link Wordlift_Key_Validation_Service} instance.
373
+     */
374
+    private $key_validation_service;
375
+
376
+    /**
377
+     * A {@link Wordlift_Rating_Service} instance.
378
+     *
379
+     * @since  3.10.0
380
+     * @access private
381
+     * @var \Wordlift_Rating_Service $rating_service A {@link Wordlift_Rating_Service} instance.
382
+     */
383
+    private $rating_service;
384
+
385
+    /**
386
+     * A {@link Wordlift_Post_To_Jsonld_Converter} instance.
387
+     *
388
+     * @since  3.10.0
389
+     * @access protected
390
+     * @var \Wordlift_Post_To_Jsonld_Converter $post_to_jsonld_converter A {@link Wordlift_Post_To_Jsonld_Converter} instance.
391
+     */
392
+    protected $post_to_jsonld_converter;
393
+
394
+    /**
395
+     * A {@link Wordlift_Configuration_Service} instance.
396
+     *
397
+     * @since  3.10.0
398
+     * @access protected
399
+     * @var \Wordlift_Configuration_Service $configuration_service A {@link Wordlift_Configuration_Service} instance.
400
+     */
401
+    protected $configuration_service;
402
+
403
+    /**
404
+     * A {@link Wordlift_Install_Service} instance.
405
+     *
406
+     * @since  3.18.0
407
+     * @access protected
408
+     * @var \Wordlift_Install_Service $install_service A {@link Wordlift_Install_Service} instance.
409
+     */
410
+    protected $install_service;
411
+
412
+    /**
413
+     * A {@link Wordlift_Entity_Type_Service} instance.
414
+     *
415
+     * @since  3.10.0
416
+     * @access protected
417
+     * @var \Wordlift_Entity_Type_Service $entity_type_service A {@link Wordlift_Entity_Type_Service} instance.
418
+     */
419
+    protected $entity_type_service;
420
+
421
+    /**
422
+     * A {@link Wordlift_Entity_Post_To_Jsonld_Converter} instance.
423
+     *
424
+     * @since  3.10.0
425
+     * @access protected
426
+     * @var \Wordlift_Entity_Post_To_Jsonld_Converter $entity_post_to_jsonld_converter A {@link Wordlift_Entity_Post_To_Jsonld_Converter} instance.
427
+     */
428
+    protected $entity_post_to_jsonld_converter;
429
+
430
+    /**
431
+     * A {@link Wordlift_Postid_To_Jsonld_Converter} instance.
432
+     *
433
+     * @since  3.10.0
434
+     * @access protected
435
+     * @var \Wordlift_Postid_To_Jsonld_Converter $postid_to_jsonld_converter A {@link Wordlift_Postid_To_Jsonld_Converter} instance.
436
+     */
437
+    protected $postid_to_jsonld_converter;
438
+
439
+    /**
440
+     * The {@link Wordlift_Admin_Status_Page} class.
441
+     *
442
+     * @since  3.9.8
443
+     * @access private
444
+     * @var \Wordlift_Admin_Status_Page $status_page The {@link Wordlift_Admin_Status_Page} class.
445
+     */
446
+    private $status_page;
447
+
448
+    /**
449
+     * The {@link Wordlift_Category_Taxonomy_Service} instance.
450
+     *
451
+     * @since  3.11.0
452
+     * @access protected
453
+     * @var \Wordlift_Category_Taxonomy_Service $category_taxonomy_service The {@link Wordlift_Category_Taxonomy_Service} instance.
454
+     */
455
+    protected $category_taxonomy_service;
456
+
457
+    /**
458
+     * The {@link Wordlift_Entity_Page_Service} instance.
459
+     *
460
+     * @since  3.11.0
461
+     * @access protected
462
+     * @var \Wordlift_Entity_Page_Service $entity_page_service The {@link Wordlift_Entity_Page_Service} instance.
463
+     */
464
+    protected $entity_page_service;
465
+
466
+    /**
467
+     * The {@link Wordlift_Admin_Settings_Page_Action_Link} class.
468
+     *
469
+     * @since  3.11.0
470
+     * @access protected
471
+     * @var \Wordlift_Admin_Settings_Page_Action_Link $settings_page_action_link The {@link Wordlift_Admin_Settings_Page_Action_Link} class.
472
+     */
473
+    protected $settings_page_action_link;
474
+
475
+    /**
476
+     * The {@link Wordlift_Admin_Settings_Page_Action_Link} class.
477
+     *
478
+     * @since  3.11.0
479
+     * @access protected
480
+     * @var \Wordlift_Admin_Settings_Page_Action_Link $settings_page_action_link The {@link Wordlift_Admin_Settings_Page_Action_Link} class.
481
+     */
482
+    protected $analytics_settings_page_action_link;
483
+
484
+    /**
485
+     * The {@link Wordlift_Analytics_Connect} class.
486
+     *
487
+     * @since  3.11.0
488
+     * @access protected
489
+     * @var \Wordlift_Analytics_Connect $analytics_connect The {@link Wordlift_Analytics_Connect} class.
490
+     */
491
+    protected $analytics_connect;
492
+
493
+    /**
494
+     * The {@link Wordlift_Publisher_Ajax_Adapter} instance.
495
+     *
496
+     * @since  3.11.0
497
+     * @access protected
498
+     * @var \Wordlift_Publisher_Ajax_Adapter $publisher_ajax_adapter The {@link Wordlift_Publisher_Ajax_Adapter} instance.
499
+     */
500
+    protected $publisher_ajax_adapter;
501
+
502
+    /**
503
+     * The {@link Wordlift_Admin_Input_Element} element renderer.
504
+     *
505
+     * @since  3.11.0
506
+     * @access protected
507
+     * @var \Wordlift_Admin_Input_Element $input_element The {@link Wordlift_Admin_Input_Element} element renderer.
508
+     */
509
+    protected $input_element;
510
+
511
+    /**
512
+     * The {@link Wordlift_Admin_Radio_Input_Element} element renderer.
513
+     *
514
+     * @since  3.13.0
515
+     * @access protected
516
+     * @var \Wordlift_Admin_Radio_Input_Element $radio_input_element The {@link Wordlift_Admin_Radio_Input_Element} element renderer.
517
+     */
518
+    protected $radio_input_element;
519
+
520
+    /**
521
+     * The {@link Wordlift_Admin_Language_Select_Element} element renderer.
522
+     *
523
+     * @since  3.11.0
524
+     * @access protected
525
+     * @var \Wordlift_Admin_Language_Select_Element $language_select_element The {@link Wordlift_Admin_Language_Select_Element} element renderer.
526
+     */
527
+    protected $language_select_element;
528
+
529
+    /**
530
+     * The {@link Wordlift_Admin_Country_Select_Element} element renderer.
531
+     *
532
+     * @since  3.18.0
533
+     * @access protected
534
+     * @var \Wordlift_Admin_Country_Select_Element $country_select_element The {@link Wordlift_Admin_Country_Select_Element} element renderer.
535
+     */
536
+    protected $country_select_element;
537
+
538
+    /**
539
+     * The {@link Wordlift_Admin_Publisher_Element} element renderer.
540
+     *
541
+     * @since  3.11.0
542
+     * @access protected
543
+     * @var \Wordlift_Admin_Publisher_Element $publisher_element The {@link Wordlift_Admin_Publisher_Element} element renderer.
544
+     */
545
+    protected $publisher_element;
546
+
547
+    /**
548
+     * The {@link Wordlift_Admin_Select2_Element} element renderer.
549
+     *
550
+     * @since  3.11.0
551
+     * @access protected
552
+     * @var \Wordlift_Admin_Select2_Element $select2_element The {@link Wordlift_Admin_Select2_Element} element renderer.
553
+     */
554
+    protected $select2_element;
555
+
556
+    /**
557
+     * The controller for the entity type list admin page
558
+     *
559
+     * @since  3.11.0
560
+     * @access private
561
+     * @var \Wordlift_Admin_Entity_Taxonomy_List_Page $entity_type_admin_page The {@link Wordlift_Admin_Entity_Taxonomy_List_Page} class.
562
+     */
563
+    private $entity_type_admin_page;
564
+
565
+    /**
566
+     * The controller for the entity type settings admin page
567
+     *
568
+     * @since  3.11.0
569
+     * @access private
570
+     * @var \Wordlift_Admin_Entity_Type_Settings $entity_type_settings_admin_page The {@link Wordlift_Admin_Entity_Type_Settings} class.
571
+     */
572
+    private $entity_type_settings_admin_page;
573
+
574
+    /**
575
+     * The {@link Wordlift_Related_Entities_Cloud_Widget} instance.
576
+     *
577
+     * @since  3.11.0
578
+     * @access protected
579
+     * @var \Wordlift_Related_Entities_Cloud_Widget $related_entities_cloud_widget The {@link Wordlift_Related_Entities_Cloud_Widget} instance.
580
+     */
581
+    protected $related_entities_cloud_widget;
582
+
583
+    /**
584
+     * The {@link Wordlift_Admin_Author_Element} instance.
585
+     *
586
+     * @since  3.14.0
587
+     * @access protected
588
+     * @var \Wordlift_Admin_Author_Element $author_element The {@link Wordlift_Admin_Author_Element} instance.
589
+     */
590
+    protected $author_element;
591
+
592
+    /**
593
+     * The {@link Wordlift_Sample_Data_Service} instance.
594
+     *
595
+     * @since  3.12.0
596
+     * @access protected
597
+     * @var \Wordlift_Sample_Data_Service $sample_data_service The {@link Wordlift_Sample_Data_Service} instance.
598
+     */
599
+    protected $sample_data_service;
600
+
601
+    /**
602
+     * The {@link Wordlift_Sample_Data_Ajax_Adapter} instance.
603
+     *
604
+     * @since  3.12.0
605
+     * @access protected
606
+     * @var \Wordlift_Sample_Data_Ajax_Adapter $sample_data_ajax_adapter The {@link Wordlift_Sample_Data_Ajax_Adapter} instance.
607
+     */
608
+    protected $sample_data_ajax_adapter;
609
+
610
+    /**
611
+     * The {@link Wordlift_Relation_Rebuild_Service} instance.
612
+     *
613
+     * @since  3.14.3
614
+     * @access private
615
+     * @var \Wordlift_Relation_Rebuild_Service $relation_rebuild_service The {@link Wordlift_Relation_Rebuild_Service} instance.
616
+     */
617
+    private $relation_rebuild_service;
618
+
619
+    /**
620
+     * The {@link Wordlift_Relation_Rebuild_Adapter} instance.
621
+     *
622
+     * @since  3.14.3
623
+     * @access private
624
+     * @var \Wordlift_Relation_Rebuild_Adapter $relation_rebuild_adapter The {@link Wordlift_Relation_Rebuild_Adapter} instance.
625
+     */
626
+    private $relation_rebuild_adapter;
627
+
628
+    /**
629
+     * The {@link Wordlift_Reference_Rebuild_Service} instance.
630
+     *
631
+     * @since  3.18.0
632
+     * @access private
633
+     * @var \Wordlift_Reference_Rebuild_Service $reference_rebuild_service The {@link Wordlift_Reference_Rebuild_Service} instance.
634
+     */
635
+    private $reference_rebuild_service;
636
+
637
+    /**
638
+     * The {@link Wordlift_Google_Analytics_Export_Service} instance.
639
+     *
640
+     * @since  3.16.0
641
+     * @access protected
642
+     * @var \Wordlift_Google_Analytics_Export_Service $google_analytics_export_service The {@link Wordlift_Google_Analytics_Export_Service} instance.
643
+     */
644
+    protected $google_analytics_export_service;
645
+
646
+    /**
647
+     * {@link Wordlift}'s singleton instance.
648
+     *
649
+     * @since  3.15.0
650
+     * @access protected
651
+     * @var \Wordlift_Entity_Type_Adapter $entity_type_adapter The {@link Wordlift_Entity_Type_Adapter} instance.
652
+     */
653
+    protected $entity_type_adapter;
654
+
655
+    /**
656
+     * The {@link Wordlift_Storage_Factory} instance.
657
+     *
658
+     * @since  3.15.0
659
+     * @access protected
660
+     * @var \Wordlift_Storage_Factory $storage_factory The {@link Wordlift_Storage_Factory} instance.
661
+     */
662
+    protected $storage_factory;
663
+
664
+    /**
665
+     * The {@link Wordlift_Sparql_Tuple_Rendition_Factory} instance.
666
+     *
667
+     * @since  3.15.0
668
+     * @access protected
669
+     * @var \Wordlift_Sparql_Tuple_Rendition_Factory $rendition_factory The {@link Wordlift_Sparql_Tuple_Rendition_Factory} instance.
670
+     */
671
+    protected $rendition_factory;
672
+
673
+    /**
674
+     * The {@link Wordlift_Autocomplete_Adapter} instance.
675
+     *
676
+     * @since  3.15.0
677
+     * @access private
678
+     * @var \Wordlift_Autocomplete_Adapter $autocomplete_adapter The {@link Wordlift_Autocomplete_Adapter} instance.
679
+     */
680
+    private $autocomplete_adapter;
681
+
682
+    /**
683
+     * The {@link Wordlift_Relation_Service} instance.
684
+     *
685
+     * @since  3.15.0
686
+     * @access protected
687
+     * @var \Wordlift_Relation_Service $relation_service The {@link Wordlift_Relation_Service} instance.
688
+     */
689
+    protected $relation_service;
690
+
691
+    /**
692
+     * The {@link Wordlift_Cached_Post_Converter} instance.
693
+     *
694
+     * @since  3.16.0
695
+     * @access protected
696
+     * @var  \Wordlift_Cached_Post_Converter $cached_postid_to_jsonld_converter The {@link Wordlift_Cached_Post_Converter} instance.
697
+     *
698
+     */
699
+    protected $cached_postid_to_jsonld_converter;
700
+
701
+    /**
702
+     * The {@link Wordlift_Entity_Uri_Service} instance.
703
+     *
704
+     * @since  3.16.3
705
+     * @access protected
706
+     * @var \Wordlift_Entity_Uri_Service $entity_uri_service The {@link Wordlift_Entity_Uri_Service} instance.
707
+     */
708
+    protected $entity_uri_service;
709
+
710
+    /**
711
+     * The {@link Wordlift_Publisher_Service} instance.
712
+     *
713
+     * @since  3.19.0
714
+     * @access protected
715
+     * @var \Wordlift_Publisher_Service $publisher_service The {@link Wordlift_Publisher_Service} instance.
716
+     */
717
+    protected $publisher_service;
718
+
719
+    /**
720
+     * The {@link Wordlift_Context_Cards_Service} instance.
721
+     *
722
+     * @var \Wordlift_Context_Cards_Service The {@link Wordlift_Context_Cards_Service} instance.
723
+     */
724
+    protected $context_cards_service;
725
+
726
+    /**
727
+     * {@link Wordlift}'s singleton instance.
728
+     *
729
+     * @since  3.11.2
730
+     * @access private
731
+     * @var Wordlift $instance {@link Wordlift}'s singleton instance.
732
+     */
733
+    private static $instance;
734
+
735
+    //</editor-fold>
736
+
737
+    /**
738
+     * Define the core functionality of the plugin.
739
+     *
740
+     * Set the plugin name and the plugin version that can be used throughout the plugin.
741
+     * Load the dependencies, define the locale, and set the hooks for the admin area and
742
+     * the public-facing side of the site.
743
+     *
744
+     * @since    1.0.0
745
+     */
746
+    public function __construct() {
747
+
748
+        self::$instance = $this;
749
+
750
+        $this->plugin_name = 'wordlift';
751
+        $this->version     = '3.27.6.3';
752
+        $this->load_dependencies();
753
+        $this->set_locale();
754
+        $this->define_admin_hooks();
755
+        $this->define_public_hooks();
756
+
757
+        // If we're in `WP_CLI` load the related files.
758
+        if ( class_exists( 'WP_CLI' ) ) {
759
+            $this->load_cli_dependencies();
760
+        }
761
+
762
+    }
763
+
764
+    /**
765
+     * Get the singleton instance.
766
+     *
767
+     * @return Wordlift The {@link Wordlift} singleton instance.
768
+     * @since 3.11.2
769
+     *
770
+     */
771
+    public static function get_instance() {
772
+
773
+        return self::$instance;
774
+    }
775
+
776
+    /**
777
+     * Load the required dependencies for this plugin.
778
+     *
779
+     * Include the following files that make up the plugin:
780
+     *
781
+     * - Wordlift_Loader. Orchestrates the hooks of the plugin.
782
+     * - Wordlift_i18n. Defines internationalization functionality.
783
+     * - Wordlift_Admin. Defines all hooks for the admin area.
784
+     * - Wordlift_Public. Defines all hooks for the public side of the site.
785
+     *
786
+     * Create an instance of the loader which will be used to register the hooks
787
+     * with WordPress.
788
+     *
789
+     * @throws Exception
790
+     * @since    1.0.0
791
+     * @access   private
792
+     */
793
+    private function load_dependencies() {
794
+
795
+        /**
796
+         * The class responsible for orchestrating the actions and filters of the
797
+         * core plugin.
798
+         */
799
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-loader.php';
800
+
801
+        // The class responsible for plugin uninstall.
802
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-deactivator-feedback.php';
803
+
804
+        /**
805
+         * The class responsible for defining internationalization functionality
806
+         * of the plugin.
807
+         */
808
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-i18n.php';
809
+
810
+        /**
811
+         * WordLift's supported languages.
812
+         */
813
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-languages.php';
814
+
815
+        /**
816
+         * WordLift's supported countries.
817
+         */
818
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-countries.php';
819
+
820
+        /**
821
+         * Provide support functions to sanitize data.
822
+         */
823
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-sanitizer.php';
824
+
825
+        /** Services. */
826
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-log-service.php';
827
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-http-api.php';
828
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-redirect-service.php';
829
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-configuration-service.php';
830
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-post-type-service.php';
831
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-type-service.php';
832
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-link-service.php';
833
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-linked-data-service.php';
834
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-relation-service.php';
835
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-image-service.php';
836
+
837
+        /**
838
+         * The Query builder.
839
+         */
840
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-query-builder.php';
841
+
842
+        /**
843
+         * The Schema service.
844
+         */
845
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-schema-service.php';
846
+
847
+        /**
848
+         * The schema:url property service.
849
+         */
850
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-property-service.php';
851
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-schema-url-property-service.php';
852
+
853
+        /**
854
+         * The UI service.
855
+         */
856
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-ui-service.php';
857
+
858
+        /**
859
+         * The Thumbnail service.
860
+         */
861
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-thumbnail-service.php';
862
+
863
+        /**
864
+         * The Entity Types Taxonomy service.
865
+         */
866
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-type-taxonomy-service.php';
867
+
868
+        /**
869
+         * The Entity service.
870
+         */
871
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-uri-service.php';
872
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-service.php';
873
+
874
+        // Add the entity rating service.
875
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-rating-service.php';
876
+
877
+        /**
878
+         * The User service.
879
+         */
880
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-user-service.php';
881
+
882
+        /**
883
+         * The Timeline service.
884
+         */
885
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-timeline-service.php';
886
+
887
+        /**
888
+         * The Topic Taxonomy service.
889
+         */
890
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-topic-taxonomy-service.php';
891
+
892
+        /**
893
+         * The SPARQL service.
894
+         */
895
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-sparql-service.php';
896
+
897
+        /**
898
+         * The WordLift import service.
899
+         */
900
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-import-service.php';
901
+
902
+        /**
903
+         * The WordLift URI service.
904
+         */
905
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-uri-service.php';
906
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-property-factory.php';
907
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-sample-data-service.php';
908
+
909
+        /**
910
+         * The WordLift rebuild service, used to rebuild the remote dataset using the local data.
911
+         */
912
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/rebuild/class-wordlift-listable.php';
913
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/rebuild/class-wordlift-rebuild-service.php';
914
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/rebuild/class-wordlift-reference-rebuild-service.php';
915
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/rebuild/class-wordlift-relation-rebuild-service.php';
916
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/rebuild/class-wordlift-relation-rebuild-adapter.php';
917
+
918
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/properties/class-wordlift-property-getter-factory.php';
919
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-attachment-service.php';
920
+
921
+        /**
922
+         * Load the converters.
923
+         */
924
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/intf-wordlift-post-converter.php';
925
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-abstract-post-to-jsonld-converter.php';
926
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-postid-to-jsonld-converter.php';
927
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-post-to-jsonld-converter.php';
928
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-post-to-jsonld-converter.php';
929
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-jsonld-website-converter.php';
930
+
931
+        /**
932
+         * Load cache-related files.
933
+         */
934
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/cache/require.php';
935
+
936
+        /**
937
+         * Load the content filter.
938
+         */
939
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-content-filter-service.php';
940
+
941
+        /*
942 942
 		 * Load the excerpt helper.
943 943
 		 */
944
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-post-excerpt-helper.php';
945
-
946
-		/**
947
-		 * Load the JSON-LD service to publish entities using JSON-LD.s
948
-		 *
949
-		 * @since 3.8.0
950
-		 */
951
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-jsonld-service.php';
952
-
953
-		// The Publisher Service and the AJAX adapter.
954
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-publisher-service.php';
955
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-publisher-ajax-adapter.php';
956
-
957
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-post-adapter.php';
958
-
959
-		/**
960
-		 * Load the WordLift key validation service.
961
-		 */
962
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-key-validation-service.php';
963
-
964
-		// Load the `Wordlift_Category_Taxonomy_Service` class definition.
965
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-category-taxonomy-service.php';
966
-
967
-		// Load the `Wordlift_Entity_Page_Service` class definition.
968
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-page-service.php';
969
-
970
-		/** Linked Data. */
971
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-storage.php';
972
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-meta-storage.php';
973
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-property-storage.php';
974
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-taxonomy-storage.php';
975
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-schema-class-storage.php';
976
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-author-storage.php';
977
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-meta-uri-storage.php';
978
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-image-storage.php';
979
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-related-storage.php';
980
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-url-property-storage.php';
981
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-storage-factory.php';
982
-
983
-		/** Linked Data Rendition. */
984
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/rendition/intf-wordlift-sparql-tuple-rendition.php';
985
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/rendition/class-wordlift-default-sparql-tuple-rendition.php';
986
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/rendition/class-wordlift-address-sparql-tuple-rendition.php';
987
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/rendition/class-wordlift-sparql-tuple-rendition-factory.php';
988
-
989
-		/** Services. */
990
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-google-analytics-export-service.php';
991
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-api-service.php';
992
-
993
-		/** Adapters. */
994
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-tinymce-adapter.php';
995
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-newrelic-adapter.php';
996
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-sample-data-ajax-adapter.php';
997
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-type-adapter.php';
998
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-wprocket-adapter.php';
999
-
1000
-		/** Async Tasks. */
1001
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/wp-async-task/class-wordlift-async-task.php';
1002
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/wp-async-task/class-wordlift-sparql-query-async-task.php';
1003
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/wp-async-task/class-wordlift-push-references-async-task.php';
1004
-
1005
-		/** Autocomplete. */
1006
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-autocomplete-adapter.php';
1007
-
1008
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-remote-image-service.php';
1009
-
1010
-		/** Analytics */
1011
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/analytics/class-wordlift-analytics-connect.php';
1012
-
1013
-		/**
1014
-		 * The class responsible for defining all actions that occur in the admin area.
1015
-		 */
1016
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin.php';
1017
-
1018
-		/**
1019
-		 * The class to customize the entity list admin page.
1020
-		 */
1021
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-entity-list.php';
1022
-
1023
-		/**
1024
-		 * The Entity Types Taxonomy Walker (transforms checkboxes into radios).
1025
-		 */
1026
-		global $wp_version;
1027
-		if ( version_compare( $wp_version, '5.3', '<' ) ) {
1028
-			require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-entity-types-taxonomy-walker.php';
1029
-		} else {
1030
-			require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-entity-types-taxonomy-walker-5-3.php';
1031
-		}
1032
-
1033
-		/**
1034
-		 * The Notice service.
1035
-		 */
1036
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-notice-service.php';
1037
-
1038
-		/**
1039
-		 * The PrimaShop adapter.
1040
-		 */
1041
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-primashop-adapter.php';
1042
-
1043
-		/**
1044
-		 * The WordLift Dashboard service.
1045
-		 */
1046
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-dashboard.php';
1047
-
1048
-		/**
1049
-		 * The admin 'Install wizard' page.
1050
-		 */
1051
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-setup.php';
1052
-
1053
-		/**
1054
-		 * The WordLift entity type list admin page controller.
1055
-		 */
1056
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-entity-taxonomy-list-page.php';
1057
-
1058
-		/**
1059
-		 * The WordLift entity type settings admin page controller.
1060
-		 */
1061
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-entity-type-settings.php';
1062
-
1063
-		/**
1064
-		 * The admin 'Download Your Data' page.
1065
-		 */
1066
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-download-your-data-page.php';
1067
-
1068
-		/**
1069
-		 * The admin 'WordLift Settings' page.
1070
-		 */
1071
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/intf-wordlift-admin-element.php';
1072
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-input-element.php';
1073
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-input-radio-element.php';
1074
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-select-element.php';
1075
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-select2-element.php';
1076
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-language-select-element.php';
1077
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-country-select-element.php';
1078
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-tabs-element.php';
1079
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-author-element.php';
1080
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-publisher-element.php';
1081
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-page.php';
1082
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-settings-page.php';
1083
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-settings-analytics-page.php';
1084
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-settings-page-action-link.php';
1085
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-settings-analytics-page-action-link.php';
1086
-
1087
-		/** Admin Pages */
1088
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-user-profile-page.php';
1089
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-status-page.php';
1090
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-search-rankings-page.php';
1091
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-entity-type-admin-service.php';
1092
-
1093
-		/**
1094
-		 * The class responsible for defining all actions that occur in the public-facing
1095
-		 * side of the site.
1096
-		 */
1097
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-public.php';
1098
-
1099
-		/**
1100
-		 * The shortcode abstract class.
1101
-		 */
1102
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-shortcode.php';
1103
-
1104
-		/**
1105
-		 * The Timeline shortcode.
1106
-		 */
1107
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-timeline-shortcode.php';
1108
-
1109
-		/**
1110
-		 * The Navigator shortcode.
1111
-		 */
1112
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-navigator-shortcode.php';
1113
-
1114
-		/**
1115
-		 * The Products Navigator shortcode.
1116
-		 */
1117
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-products-navigator-shortcode.php';
1118
-
1119
-		/**
1120
-		 * The chord shortcode.
1121
-		 */
1122
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-chord-shortcode.php';
1123
-
1124
-		/**
1125
-		 * The geomap shortcode.
1126
-		 */
1127
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-geomap-shortcode.php';
1128
-
1129
-		/**
1130
-		 * The entity cloud shortcode.
1131
-		 */
1132
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-related-entities-cloud-shortcode.php';
1133
-
1134
-		/**
1135
-		 * The entity glossary shortcode.
1136
-		 */
1137
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-alphabet-service.php';
1138
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-vocabulary-shortcode.php';
1139
-
1140
-		/**
1141
-		 * Faceted Search shortcode.
1142
-		 */
1143
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-faceted-search-shortcode.php';
1144
-
1145
-		/**
1146
-		 * The ShareThis service.
1147
-		 */
1148
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-sharethis-service.php';
1149
-
1150
-		/**
1151
-		 * The SEO service.
1152
-		 */
1153
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-seo-service.php';
1154
-
1155
-		/**
1156
-		 * The AMP service.
1157
-		 */
1158
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-amp-service.php';
1159
-
1160
-		/** Widgets */
1161
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-widget.php';
1162
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-related-entities-cloud-widget.php';
1163
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-context-cards.php';
1164
-
1165
-		/*
944
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-post-excerpt-helper.php';
945
+
946
+        /**
947
+         * Load the JSON-LD service to publish entities using JSON-LD.s
948
+         *
949
+         * @since 3.8.0
950
+         */
951
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-jsonld-service.php';
952
+
953
+        // The Publisher Service and the AJAX adapter.
954
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-publisher-service.php';
955
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-publisher-ajax-adapter.php';
956
+
957
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-post-adapter.php';
958
+
959
+        /**
960
+         * Load the WordLift key validation service.
961
+         */
962
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-key-validation-service.php';
963
+
964
+        // Load the `Wordlift_Category_Taxonomy_Service` class definition.
965
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-category-taxonomy-service.php';
966
+
967
+        // Load the `Wordlift_Entity_Page_Service` class definition.
968
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-page-service.php';
969
+
970
+        /** Linked Data. */
971
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-storage.php';
972
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-meta-storage.php';
973
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-property-storage.php';
974
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-taxonomy-storage.php';
975
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-schema-class-storage.php';
976
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-author-storage.php';
977
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-meta-uri-storage.php';
978
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-image-storage.php';
979
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-related-storage.php';
980
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-url-property-storage.php';
981
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-storage-factory.php';
982
+
983
+        /** Linked Data Rendition. */
984
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/rendition/intf-wordlift-sparql-tuple-rendition.php';
985
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/rendition/class-wordlift-default-sparql-tuple-rendition.php';
986
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/rendition/class-wordlift-address-sparql-tuple-rendition.php';
987
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/rendition/class-wordlift-sparql-tuple-rendition-factory.php';
988
+
989
+        /** Services. */
990
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-google-analytics-export-service.php';
991
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-api-service.php';
992
+
993
+        /** Adapters. */
994
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-tinymce-adapter.php';
995
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-newrelic-adapter.php';
996
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-sample-data-ajax-adapter.php';
997
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-type-adapter.php';
998
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-wprocket-adapter.php';
999
+
1000
+        /** Async Tasks. */
1001
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/wp-async-task/class-wordlift-async-task.php';
1002
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/wp-async-task/class-wordlift-sparql-query-async-task.php';
1003
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/wp-async-task/class-wordlift-push-references-async-task.php';
1004
+
1005
+        /** Autocomplete. */
1006
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-autocomplete-adapter.php';
1007
+
1008
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-remote-image-service.php';
1009
+
1010
+        /** Analytics */
1011
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/analytics/class-wordlift-analytics-connect.php';
1012
+
1013
+        /**
1014
+         * The class responsible for defining all actions that occur in the admin area.
1015
+         */
1016
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin.php';
1017
+
1018
+        /**
1019
+         * The class to customize the entity list admin page.
1020
+         */
1021
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-entity-list.php';
1022
+
1023
+        /**
1024
+         * The Entity Types Taxonomy Walker (transforms checkboxes into radios).
1025
+         */
1026
+        global $wp_version;
1027
+        if ( version_compare( $wp_version, '5.3', '<' ) ) {
1028
+            require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-entity-types-taxonomy-walker.php';
1029
+        } else {
1030
+            require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-entity-types-taxonomy-walker-5-3.php';
1031
+        }
1032
+
1033
+        /**
1034
+         * The Notice service.
1035
+         */
1036
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-notice-service.php';
1037
+
1038
+        /**
1039
+         * The PrimaShop adapter.
1040
+         */
1041
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-primashop-adapter.php';
1042
+
1043
+        /**
1044
+         * The WordLift Dashboard service.
1045
+         */
1046
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-dashboard.php';
1047
+
1048
+        /**
1049
+         * The admin 'Install wizard' page.
1050
+         */
1051
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-setup.php';
1052
+
1053
+        /**
1054
+         * The WordLift entity type list admin page controller.
1055
+         */
1056
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-entity-taxonomy-list-page.php';
1057
+
1058
+        /**
1059
+         * The WordLift entity type settings admin page controller.
1060
+         */
1061
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-entity-type-settings.php';
1062
+
1063
+        /**
1064
+         * The admin 'Download Your Data' page.
1065
+         */
1066
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-download-your-data-page.php';
1067
+
1068
+        /**
1069
+         * The admin 'WordLift Settings' page.
1070
+         */
1071
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/intf-wordlift-admin-element.php';
1072
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-input-element.php';
1073
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-input-radio-element.php';
1074
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-select-element.php';
1075
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-select2-element.php';
1076
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-language-select-element.php';
1077
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-country-select-element.php';
1078
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-tabs-element.php';
1079
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-author-element.php';
1080
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-publisher-element.php';
1081
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-page.php';
1082
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-settings-page.php';
1083
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-settings-analytics-page.php';
1084
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-settings-page-action-link.php';
1085
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-settings-analytics-page-action-link.php';
1086
+
1087
+        /** Admin Pages */
1088
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-user-profile-page.php';
1089
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-status-page.php';
1090
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-search-rankings-page.php';
1091
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-entity-type-admin-service.php';
1092
+
1093
+        /**
1094
+         * The class responsible for defining all actions that occur in the public-facing
1095
+         * side of the site.
1096
+         */
1097
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-public.php';
1098
+
1099
+        /**
1100
+         * The shortcode abstract class.
1101
+         */
1102
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-shortcode.php';
1103
+
1104
+        /**
1105
+         * The Timeline shortcode.
1106
+         */
1107
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-timeline-shortcode.php';
1108
+
1109
+        /**
1110
+         * The Navigator shortcode.
1111
+         */
1112
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-navigator-shortcode.php';
1113
+
1114
+        /**
1115
+         * The Products Navigator shortcode.
1116
+         */
1117
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-products-navigator-shortcode.php';
1118
+
1119
+        /**
1120
+         * The chord shortcode.
1121
+         */
1122
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-chord-shortcode.php';
1123
+
1124
+        /**
1125
+         * The geomap shortcode.
1126
+         */
1127
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-geomap-shortcode.php';
1128
+
1129
+        /**
1130
+         * The entity cloud shortcode.
1131
+         */
1132
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-related-entities-cloud-shortcode.php';
1133
+
1134
+        /**
1135
+         * The entity glossary shortcode.
1136
+         */
1137
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-alphabet-service.php';
1138
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-vocabulary-shortcode.php';
1139
+
1140
+        /**
1141
+         * Faceted Search shortcode.
1142
+         */
1143
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-faceted-search-shortcode.php';
1144
+
1145
+        /**
1146
+         * The ShareThis service.
1147
+         */
1148
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-sharethis-service.php';
1149
+
1150
+        /**
1151
+         * The SEO service.
1152
+         */
1153
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-seo-service.php';
1154
+
1155
+        /**
1156
+         * The AMP service.
1157
+         */
1158
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-amp-service.php';
1159
+
1160
+        /** Widgets */
1161
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-widget.php';
1162
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-related-entities-cloud-widget.php';
1163
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-context-cards.php';
1164
+
1165
+        /*
1166 1166
 		 * Schema.org Services.
1167 1167
 		 *
1168 1168
 		 * @see https://github.com/insideout10/wordlift-plugin/issues/835
1169 1169
 		 */
1170
-		if ( WL_ALL_ENTITY_TYPES ) {
1171
-			require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/schemaorg/class-wordlift-schemaorg-sync-service.php';
1172
-			require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/schemaorg/class-wordlift-schemaorg-property-service.php';
1173
-			require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/schemaorg/class-wordlift-schemaorg-class-service.php';
1174
-			new Wordlift_Schemaorg_Sync_Service();
1175
-			$schemaorg_property_service = new Wordlift_Schemaorg_Property_Service();
1176
-			new Wordlift_Schemaorg_Class_Service();
1177
-		} else {
1178
-			$schemaorg_property_service = null;
1179
-		}
1170
+        if ( WL_ALL_ENTITY_TYPES ) {
1171
+            require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/schemaorg/class-wordlift-schemaorg-sync-service.php';
1172
+            require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/schemaorg/class-wordlift-schemaorg-property-service.php';
1173
+            require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/schemaorg/class-wordlift-schemaorg-class-service.php';
1174
+            new Wordlift_Schemaorg_Sync_Service();
1175
+            $schemaorg_property_service = new Wordlift_Schemaorg_Property_Service();
1176
+            new Wordlift_Schemaorg_Class_Service();
1177
+        } else {
1178
+            $schemaorg_property_service = null;
1179
+        }
1180 1180
 
1181
-		$this->loader = new Wordlift_Loader();
1181
+        $this->loader = new Wordlift_Loader();
1182 1182
 
1183
-		// Instantiate a global logger.
1184
-		global $wl_logger;
1185
-		$wl_logger = Wordlift_Log_Service::get_logger( 'WordLift' );
1183
+        // Instantiate a global logger.
1184
+        global $wl_logger;
1185
+        $wl_logger = Wordlift_Log_Service::get_logger( 'WordLift' );
1186 1186
 
1187
-		// Load the `wl-api` end-point.
1188
-		new Wordlift_Http_Api();
1187
+        // Load the `wl-api` end-point.
1188
+        new Wordlift_Http_Api();
1189 1189
 
1190
-		// Load the Install Service.
1191
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'install/class-wordlift-install-service.php';
1192
-		$this->install_service = new Wordlift_Install_Service();
1190
+        // Load the Install Service.
1191
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'install/class-wordlift-install-service.php';
1192
+        $this->install_service = new Wordlift_Install_Service();
1193 1193
 
1194
-		/** Services. */
1195
-		// Create the configuration service.
1196
-		$this->configuration_service = new Wordlift_Configuration_Service();
1197
-		$api_service                 = new Wordlift_Api_Service( $this->configuration_service );
1194
+        /** Services. */
1195
+        // Create the configuration service.
1196
+        $this->configuration_service = new Wordlift_Configuration_Service();
1197
+        $api_service                 = new Wordlift_Api_Service( $this->configuration_service );
1198 1198
 
1199
-		// Create an entity type service instance. It'll be later bound to the init action.
1200
-		$this->entity_post_type_service = new Wordlift_Entity_Post_Type_Service( Wordlift_Entity_Service::TYPE_NAME, $this->configuration_service->get_entity_base_path() );
1199
+        // Create an entity type service instance. It'll be later bound to the init action.
1200
+        $this->entity_post_type_service = new Wordlift_Entity_Post_Type_Service( Wordlift_Entity_Service::TYPE_NAME, $this->configuration_service->get_entity_base_path() );
1201 1201
 
1202
-		// Create an entity link service instance. It'll be later bound to the post_type_link and pre_get_posts actions.
1203
-		$this->entity_link_service = new Wordlift_Entity_Link_Service( $this->entity_post_type_service, $this->configuration_service->get_entity_base_path() );
1202
+        // Create an entity link service instance. It'll be later bound to the post_type_link and pre_get_posts actions.
1203
+        $this->entity_link_service = new Wordlift_Entity_Link_Service( $this->entity_post_type_service, $this->configuration_service->get_entity_base_path() );
1204 1204
 
1205
-		// Create an instance of the UI service.
1206
-		$this->ui_service = new Wordlift_UI_Service();
1205
+        // Create an instance of the UI service.
1206
+        $this->ui_service = new Wordlift_UI_Service();
1207 1207
 
1208
-		// Create an instance of the Thumbnail service. Later it'll be hooked to post meta events.
1209
-		$this->thumbnail_service = new Wordlift_Thumbnail_Service();
1208
+        // Create an instance of the Thumbnail service. Later it'll be hooked to post meta events.
1209
+        $this->thumbnail_service = new Wordlift_Thumbnail_Service();
1210 1210
 
1211
-		$this->sparql_service        = new Wordlift_Sparql_Service();
1212
-		$schema_url_property_service = new Wordlift_Schema_Url_Property_Service( $this->sparql_service );
1213
-		$this->notice_service        = new Wordlift_Notice_Service();
1214
-		$this->relation_service      = new Wordlift_Relation_Service();
1211
+        $this->sparql_service        = new Wordlift_Sparql_Service();
1212
+        $schema_url_property_service = new Wordlift_Schema_Url_Property_Service( $this->sparql_service );
1213
+        $this->notice_service        = new Wordlift_Notice_Service();
1214
+        $this->relation_service      = new Wordlift_Relation_Service();
1215 1215
 
1216
-		$entity_uri_cache_service = new Wordlift_File_Cache_Service( WL_TEMP_DIR . 'entity_uri/' );
1217
-		$this->entity_uri_service = new Wordlift_Cached_Entity_Uri_Service( $this->configuration_service, $entity_uri_cache_service );
1218
-		$this->entity_service     = new Wordlift_Entity_Service( $this->ui_service, $this->relation_service, $this->entity_uri_service );
1219
-		$this->user_service       = new Wordlift_User_Service( $this->sparql_service, $this->entity_service );
1216
+        $entity_uri_cache_service = new Wordlift_File_Cache_Service( WL_TEMP_DIR . 'entity_uri/' );
1217
+        $this->entity_uri_service = new Wordlift_Cached_Entity_Uri_Service( $this->configuration_service, $entity_uri_cache_service );
1218
+        $this->entity_service     = new Wordlift_Entity_Service( $this->ui_service, $this->relation_service, $this->entity_uri_service );
1219
+        $this->user_service       = new Wordlift_User_Service( $this->sparql_service, $this->entity_service );
1220 1220
 
1221
-		// Instantiate the JSON-LD service.
1222
-		$property_getter = Wordlift_Property_Getter_Factory::create( $this->entity_service );
1221
+        // Instantiate the JSON-LD service.
1222
+        $property_getter = Wordlift_Property_Getter_Factory::create( $this->entity_service );
1223 1223
 
1224
-		/** Linked Data. */
1225
-		$this->storage_factory   = new Wordlift_Storage_Factory( $this->entity_service, $this->user_service, $property_getter );
1226
-		$this->rendition_factory = new Wordlift_Sparql_Tuple_Rendition_Factory( $this->entity_service );
1224
+        /** Linked Data. */
1225
+        $this->storage_factory   = new Wordlift_Storage_Factory( $this->entity_service, $this->user_service, $property_getter );
1226
+        $this->rendition_factory = new Wordlift_Sparql_Tuple_Rendition_Factory( $this->entity_service );
1227 1227
 
1228
-		$this->schema_service = new Wordlift_Schema_Service( $this->storage_factory, $this->rendition_factory, $this->configuration_service );
1228
+        $this->schema_service = new Wordlift_Schema_Service( $this->storage_factory, $this->rendition_factory, $this->configuration_service );
1229 1229
 
1230
-		// Create a new instance of the Redirect service.
1231
-		$this->redirect_service    = new Wordlift_Redirect_Service( $this->entity_uri_service );
1232
-		$this->entity_type_service = new Wordlift_Entity_Type_Service( $this->schema_service );
1230
+        // Create a new instance of the Redirect service.
1231
+        $this->redirect_service    = new Wordlift_Redirect_Service( $this->entity_uri_service );
1232
+        $this->entity_type_service = new Wordlift_Entity_Type_Service( $this->schema_service );
1233 1233
 
1234
-		if ( ! apply_filters( 'wl_features__enable__legacy_linked_data', true ) ) {
1235
-			new Wordlift_Linked_Data_Service( $this->entity_service, $this->entity_type_service, $this->schema_service, $this->sparql_service );
1236
-		}
1234
+        if ( ! apply_filters( 'wl_features__enable__legacy_linked_data', true ) ) {
1235
+            new Wordlift_Linked_Data_Service( $this->entity_service, $this->entity_type_service, $this->schema_service, $this->sparql_service );
1236
+        }
1237 1237
 
1238
-		// Create a new instance of the Timeline service and Timeline shortcode.
1239
-		$this->timeline_service = new Wordlift_Timeline_Service( $this->entity_service, $this->entity_type_service );
1238
+        // Create a new instance of the Timeline service and Timeline shortcode.
1239
+        $this->timeline_service = new Wordlift_Timeline_Service( $this->entity_service, $this->entity_type_service );
1240 1240
 
1241
-		$this->entity_types_taxonomy_walker = new Wordlift_Entity_Types_Taxonomy_Walker();
1241
+        $this->entity_types_taxonomy_walker = new Wordlift_Entity_Types_Taxonomy_Walker();
1242 1242
 
1243
-		$this->topic_taxonomy_service        = new Wordlift_Topic_Taxonomy_Service();
1244
-		$this->entity_types_taxonomy_service = new Wordlift_Entity_Type_Taxonomy_Service();
1243
+        $this->topic_taxonomy_service        = new Wordlift_Topic_Taxonomy_Service();
1244
+        $this->entity_types_taxonomy_service = new Wordlift_Entity_Type_Taxonomy_Service();
1245 1245
 
1246
-		// Create an instance of the ShareThis service, later we hook it to the_content and the_excerpt filters.
1247
-		$this->sharethis_service = new Wordlift_ShareThis_Service();
1246
+        // Create an instance of the ShareThis service, later we hook it to the_content and the_excerpt filters.
1247
+        $this->sharethis_service = new Wordlift_ShareThis_Service();
1248 1248
 
1249
-		// Create an instance of the PrimaShop adapter.
1250
-		$this->primashop_adapter = new Wordlift_PrimaShop_Adapter();
1249
+        // Create an instance of the PrimaShop adapter.
1250
+        $this->primashop_adapter = new Wordlift_PrimaShop_Adapter();
1251 1251
 
1252
-		// Create an import service instance to hook later to WP's import function.
1253
-		$this->import_service = new Wordlift_Import_Service( $this->entity_post_type_service, $this->entity_service, $this->schema_service, $this->sparql_service, $this->configuration_service->get_dataset_uri() );
1252
+        // Create an import service instance to hook later to WP's import function.
1253
+        $this->import_service = new Wordlift_Import_Service( $this->entity_post_type_service, $this->entity_service, $this->schema_service, $this->sparql_service, $this->configuration_service->get_dataset_uri() );
1254 1254
 
1255
-		$uri_service = new Wordlift_Uri_Service( $GLOBALS['wpdb'] );
1255
+        $uri_service = new Wordlift_Uri_Service( $GLOBALS['wpdb'] );
1256 1256
 
1257
-		// Create the entity rating service.
1258
-		$this->rating_service = new Wordlift_Rating_Service( $this->entity_service, $this->entity_type_service, $this->notice_service );
1257
+        // Create the entity rating service.
1258
+        $this->rating_service = new Wordlift_Rating_Service( $this->entity_service, $this->entity_type_service, $this->notice_service );
1259 1259
 
1260
-		// Create entity list customization (wp-admin/edit.php).
1261
-		$this->entity_list_service = new Wordlift_Entity_List_Service( $this->rating_service );
1260
+        // Create entity list customization (wp-admin/edit.php).
1261
+        $this->entity_list_service = new Wordlift_Entity_List_Service( $this->rating_service );
1262 1262
 
1263
-		// Create a new instance of the Redirect service.
1264
-		$this->dashboard_service = new Wordlift_Dashboard_Service( $this->rating_service, $this->entity_service );
1263
+        // Create a new instance of the Redirect service.
1264
+        $this->dashboard_service = new Wordlift_Dashboard_Service( $this->rating_service, $this->entity_service );
1265 1265
 
1266
-		// Create an instance of the Publisher Service and the AJAX Adapter.
1267
-		$this->publisher_service = new Wordlift_Publisher_Service( $this->configuration_service );
1268
-		$this->property_factory  = new Wordlift_Property_Factory( $schema_url_property_service );
1269
-		$this->property_factory->register( Wordlift_Schema_Url_Property_Service::META_KEY, $schema_url_property_service );
1266
+        // Create an instance of the Publisher Service and the AJAX Adapter.
1267
+        $this->publisher_service = new Wordlift_Publisher_Service( $this->configuration_service );
1268
+        $this->property_factory  = new Wordlift_Property_Factory( $schema_url_property_service );
1269
+        $this->property_factory->register( Wordlift_Schema_Url_Property_Service::META_KEY, $schema_url_property_service );
1270 1270
 
1271
-		$attachment_service = new Wordlift_Attachment_Service();
1271
+        $attachment_service = new Wordlift_Attachment_Service();
1272 1272
 
1273
-		// Instantiate the JSON-LD service.
1274
-		$property_getter                       = Wordlift_Property_Getter_Factory::create( $this->entity_service );
1275
-		$this->post_to_jsonld_converter        = new Wordlift_Post_To_Jsonld_Converter( $this->entity_type_service, $this->entity_service, $this->user_service, $attachment_service, $this->configuration_service );
1276
-		$this->entity_post_to_jsonld_converter = new Wordlift_Entity_Post_To_Jsonld_Converter( $this->entity_type_service, $this->entity_service, $this->user_service, $attachment_service, $property_getter, $schemaorg_property_service, $this->post_to_jsonld_converter );
1277
-		$this->postid_to_jsonld_converter      = new Wordlift_Postid_To_Jsonld_Converter( $this->entity_service, $this->entity_post_to_jsonld_converter, $this->post_to_jsonld_converter );
1278
-		$this->jsonld_website_converter        = new Wordlift_Website_Jsonld_Converter( $this->entity_type_service, $this->entity_service, $this->user_service, $attachment_service, $this->configuration_service );
1273
+        // Instantiate the JSON-LD service.
1274
+        $property_getter                       = Wordlift_Property_Getter_Factory::create( $this->entity_service );
1275
+        $this->post_to_jsonld_converter        = new Wordlift_Post_To_Jsonld_Converter( $this->entity_type_service, $this->entity_service, $this->user_service, $attachment_service, $this->configuration_service );
1276
+        $this->entity_post_to_jsonld_converter = new Wordlift_Entity_Post_To_Jsonld_Converter( $this->entity_type_service, $this->entity_service, $this->user_service, $attachment_service, $property_getter, $schemaorg_property_service, $this->post_to_jsonld_converter );
1277
+        $this->postid_to_jsonld_converter      = new Wordlift_Postid_To_Jsonld_Converter( $this->entity_service, $this->entity_post_to_jsonld_converter, $this->post_to_jsonld_converter );
1278
+        $this->jsonld_website_converter        = new Wordlift_Website_Jsonld_Converter( $this->entity_type_service, $this->entity_service, $this->user_service, $attachment_service, $this->configuration_service );
1279 1279
 
1280
-		$jsonld_cache                            = new Ttl_Cache( 'jsonld', 86400 );
1281
-		$this->cached_postid_to_jsonld_converter = new Wordlift_Cached_Post_Converter( $this->postid_to_jsonld_converter, $this->configuration_service, $jsonld_cache );
1282
-		$this->jsonld_service                    = new Wordlift_Jsonld_Service( $this->entity_service, $this->cached_postid_to_jsonld_converter, $this->jsonld_website_converter );
1280
+        $jsonld_cache                            = new Ttl_Cache( 'jsonld', 86400 );
1281
+        $this->cached_postid_to_jsonld_converter = new Wordlift_Cached_Post_Converter( $this->postid_to_jsonld_converter, $this->configuration_service, $jsonld_cache );
1282
+        $this->jsonld_service                    = new Wordlift_Jsonld_Service( $this->entity_service, $this->cached_postid_to_jsonld_converter, $this->jsonld_website_converter );
1283 1283
 
1284
-		/*
1284
+        /*
1285 1285
 		 * Load the `Wordlift_Term_JsonLd_Adapter`.
1286 1286
 		 *
1287 1287
 		 * @see https://github.com/insideout10/wordlift-plugin/issues/892
1288 1288
 		 *
1289 1289
 		 * @since 3.20.0
1290 1290
 		 */
1291
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-term-jsonld-adapter.php';
1292
-		$term_jsonld_adapter = new Wordlift_Term_JsonLd_Adapter( $this->entity_uri_service, $this->jsonld_service );
1293
-		$jsonld_service      = new Jsonld_Service( $this->jsonld_service, $term_jsonld_adapter );
1294
-		new Jsonld_Endpoint( $jsonld_service, $this->entity_uri_service );
1295
-
1296
-		// Prints the JSON-LD in the head.
1297
-		new Jsonld_Adapter( $this->jsonld_service );
1298
-
1299
-		new Jsonld_By_Id_Endpoint( $this->jsonld_service, $this->entity_uri_service );
1300
-
1301
-		$this->key_validation_service = new Wordlift_Key_Validation_Service( $this->configuration_service );
1302
-		$this->content_filter_service = new Wordlift_Content_Filter_Service( $this->entity_service, $this->configuration_service, $this->entity_uri_service );
1303
-		// Creating Faq Content filter service.
1304
-		$this->faq_content_filter_service = new Faq_Content_Filter();
1305
-		$this->relation_rebuild_service   = new Wordlift_Relation_Rebuild_Service( $this->content_filter_service, $this->entity_service );
1306
-		$this->sample_data_service        = new Wordlift_Sample_Data_Service( $this->entity_type_service, $this->configuration_service, $this->user_service );
1307
-		$this->sample_data_ajax_adapter   = new Wordlift_Sample_Data_Ajax_Adapter( $this->sample_data_service );
1308
-		$this->reference_rebuild_service  = new Wordlift_Reference_Rebuild_Service( $this->entity_service );
1309
-		/**
1310
-		 * Filter: wl_feature__enable__blocks.
1311
-		 *
1312
-		 * @param bool whether the blocks needed to be registered, defaults to true.
1313
-		 *
1314
-		 * @return bool
1315
-		 * @since 3.27.6
1316
-		 */
1317
-		wp_register_script( 'wl_enabled_blocks', false );
1318
-		$enabled_blocks = array('wordlift/products-navigator');
1319
-
1320
-		if ( apply_filters( 'wl_feature__enable__blocks', true ) ) {
1321
-			// Initialize the short-codes.
1322
-			new Wordlift_Navigator_Shortcode();
1323
-			new Wordlift_Chord_Shortcode();
1324
-			new Wordlift_Geomap_Shortcode();
1325
-			new Wordlift_Timeline_Shortcode();
1326
-			new Wordlift_Related_Entities_Cloud_Shortcode( $this->relation_service );
1327
-			new Wordlift_Vocabulary_Shortcode( $this->configuration_service );
1328
-			new Wordlift_Faceted_Search_Shortcode();
1329
-
1330
-			// To intimate JS
1331
-			$enabled_blocks = array_merge($enabled_blocks, array(
1332
-				'wordlift/navigator',
1333
-				'wordlift/chord',
1334
-				'wordlift/geomap',
1335
-				'wordlift/timeline',
1336
-				'wordlift/cloud',
1337
-				'wordlift/vocabulary',
1338
-				'wordlift/faceted-search'
1339
-			));
1340
-		}
1341
-
1342
-		new Wordlift_Products_Navigator_Shortcode();
1343
-		wp_localize_script( 'wl_enabled_blocks', 'wlEnabledBlocks', $enabled_blocks );
1344
-		wp_enqueue_script( 'wl_enabled_blocks' );
1345
-
1346
-		// Initialize the Context Cards Service
1347
-		$this->context_cards_service = new Wordlift_Context_Cards_Service();
1348
-
1349
-		// Initialize the SEO service.
1350
-		new Wordlift_Seo_Service();
1351
-
1352
-		// Initialize the AMP service.
1353
-		new Wordlift_AMP_Service( $this->jsonld_service );
1354
-
1355
-		/** Services. */
1356
-		$this->google_analytics_export_service = new Wordlift_Google_Analytics_Export_Service();
1357
-		new Wordlift_Image_Service();
1358
-
1359
-		/** Adapters. */
1360
-		$this->entity_type_adapter    = new Wordlift_Entity_Type_Adapter( $this->entity_type_service );
1361
-		$this->publisher_ajax_adapter = new Wordlift_Publisher_Ajax_Adapter( $this->publisher_service );
1362
-		$this->tinymce_adapter        = new Wordlift_Tinymce_Adapter( $this );
1363
-		//$this->faq_tinymce_adapter      = new Faq_Tinymce_Adapter();
1364
-		$this->relation_rebuild_adapter = new Wordlift_Relation_Rebuild_Adapter( $this->relation_rebuild_service );
1365
-
1366
-		/*
1291
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-term-jsonld-adapter.php';
1292
+        $term_jsonld_adapter = new Wordlift_Term_JsonLd_Adapter( $this->entity_uri_service, $this->jsonld_service );
1293
+        $jsonld_service      = new Jsonld_Service( $this->jsonld_service, $term_jsonld_adapter );
1294
+        new Jsonld_Endpoint( $jsonld_service, $this->entity_uri_service );
1295
+
1296
+        // Prints the JSON-LD in the head.
1297
+        new Jsonld_Adapter( $this->jsonld_service );
1298
+
1299
+        new Jsonld_By_Id_Endpoint( $this->jsonld_service, $this->entity_uri_service );
1300
+
1301
+        $this->key_validation_service = new Wordlift_Key_Validation_Service( $this->configuration_service );
1302
+        $this->content_filter_service = new Wordlift_Content_Filter_Service( $this->entity_service, $this->configuration_service, $this->entity_uri_service );
1303
+        // Creating Faq Content filter service.
1304
+        $this->faq_content_filter_service = new Faq_Content_Filter();
1305
+        $this->relation_rebuild_service   = new Wordlift_Relation_Rebuild_Service( $this->content_filter_service, $this->entity_service );
1306
+        $this->sample_data_service        = new Wordlift_Sample_Data_Service( $this->entity_type_service, $this->configuration_service, $this->user_service );
1307
+        $this->sample_data_ajax_adapter   = new Wordlift_Sample_Data_Ajax_Adapter( $this->sample_data_service );
1308
+        $this->reference_rebuild_service  = new Wordlift_Reference_Rebuild_Service( $this->entity_service );
1309
+        /**
1310
+         * Filter: wl_feature__enable__blocks.
1311
+         *
1312
+         * @param bool whether the blocks needed to be registered, defaults to true.
1313
+         *
1314
+         * @return bool
1315
+         * @since 3.27.6
1316
+         */
1317
+        wp_register_script( 'wl_enabled_blocks', false );
1318
+        $enabled_blocks = array('wordlift/products-navigator');
1319
+
1320
+        if ( apply_filters( 'wl_feature__enable__blocks', true ) ) {
1321
+            // Initialize the short-codes.
1322
+            new Wordlift_Navigator_Shortcode();
1323
+            new Wordlift_Chord_Shortcode();
1324
+            new Wordlift_Geomap_Shortcode();
1325
+            new Wordlift_Timeline_Shortcode();
1326
+            new Wordlift_Related_Entities_Cloud_Shortcode( $this->relation_service );
1327
+            new Wordlift_Vocabulary_Shortcode( $this->configuration_service );
1328
+            new Wordlift_Faceted_Search_Shortcode();
1329
+
1330
+            // To intimate JS
1331
+            $enabled_blocks = array_merge($enabled_blocks, array(
1332
+                'wordlift/navigator',
1333
+                'wordlift/chord',
1334
+                'wordlift/geomap',
1335
+                'wordlift/timeline',
1336
+                'wordlift/cloud',
1337
+                'wordlift/vocabulary',
1338
+                'wordlift/faceted-search'
1339
+            ));
1340
+        }
1341
+
1342
+        new Wordlift_Products_Navigator_Shortcode();
1343
+        wp_localize_script( 'wl_enabled_blocks', 'wlEnabledBlocks', $enabled_blocks );
1344
+        wp_enqueue_script( 'wl_enabled_blocks' );
1345
+
1346
+        // Initialize the Context Cards Service
1347
+        $this->context_cards_service = new Wordlift_Context_Cards_Service();
1348
+
1349
+        // Initialize the SEO service.
1350
+        new Wordlift_Seo_Service();
1351
+
1352
+        // Initialize the AMP service.
1353
+        new Wordlift_AMP_Service( $this->jsonld_service );
1354
+
1355
+        /** Services. */
1356
+        $this->google_analytics_export_service = new Wordlift_Google_Analytics_Export_Service();
1357
+        new Wordlift_Image_Service();
1358
+
1359
+        /** Adapters. */
1360
+        $this->entity_type_adapter    = new Wordlift_Entity_Type_Adapter( $this->entity_type_service );
1361
+        $this->publisher_ajax_adapter = new Wordlift_Publisher_Ajax_Adapter( $this->publisher_service );
1362
+        $this->tinymce_adapter        = new Wordlift_Tinymce_Adapter( $this );
1363
+        //$this->faq_tinymce_adapter      = new Faq_Tinymce_Adapter();
1364
+        $this->relation_rebuild_adapter = new Wordlift_Relation_Rebuild_Adapter( $this->relation_rebuild_service );
1365
+
1366
+        /*
1367 1367
 		 * Exclude our public js from WP-Rocket.
1368 1368
 		 *
1369 1369
 		 * @since 3.19.4
1370 1370
 		 *
1371 1371
 		 * @see https://github.com/insideout10/wordlift-plugin/issues/842.
1372 1372
 		 */
1373
-		new Wordlift_WpRocket_Adapter();
1374
-
1375
-		// Create a Rebuild Service instance, which we'll later bound to an ajax call.
1376
-		$this->rebuild_service = new Wordlift_Rebuild_Service(
1377
-			$this->sparql_service,
1378
-			$uri_service
1379
-		);
1380
-
1381
-		/** Async Tasks. */
1382
-		new Wordlift_Sparql_Query_Async_Task();
1383
-		new Wordlift_Push_References_Async_Task();
1384
-
1385
-		/** WordPress Admin UI. */
1386
-
1387
-		// UI elements.
1388
-		$this->input_element           = new Wordlift_Admin_Input_Element();
1389
-		$this->radio_input_element     = new Wordlift_Admin_Radio_Input_Element();
1390
-		$this->select2_element         = new Wordlift_Admin_Select2_Element();
1391
-		$this->language_select_element = new Wordlift_Admin_Language_Select_Element();
1392
-		$this->country_select_element  = new Wordlift_Admin_Country_Select_Element();
1393
-		$tabs_element                  = new Wordlift_Admin_Tabs_Element();
1394
-		$this->publisher_element       = new Wordlift_Admin_Publisher_Element( $this->configuration_service, $this->publisher_service, $tabs_element, $this->select2_element );
1395
-		$this->author_element          = new Wordlift_Admin_Author_Element( $this->publisher_service, $this->select2_element );
1396
-
1397
-		$this->settings_page             = new Wordlift_Admin_Settings_Page( $this->configuration_service, $this->entity_service, $this->input_element, $this->language_select_element, $this->country_select_element, $this->publisher_element, $this->radio_input_element );
1398
-		$this->settings_page_action_link = new Wordlift_Admin_Settings_Page_Action_Link( $this->settings_page );
1399
-
1400
-		$this->analytics_settings_page             = new Wordlift_Admin_Settings_Analytics_Page( $this->configuration_service, $this->input_element, $this->radio_input_element );
1401
-		$this->analytics_settings_page_action_link = new Wordlift_Admin_Settings_Analytics_Page_Action_Link( $this->analytics_settings_page );
1402
-		$this->analytics_connect                   = new Wordlift_Analytics_Connect();
1403
-
1404
-		// Pages.
1405
-		/*
1373
+        new Wordlift_WpRocket_Adapter();
1374
+
1375
+        // Create a Rebuild Service instance, which we'll later bound to an ajax call.
1376
+        $this->rebuild_service = new Wordlift_Rebuild_Service(
1377
+            $this->sparql_service,
1378
+            $uri_service
1379
+        );
1380
+
1381
+        /** Async Tasks. */
1382
+        new Wordlift_Sparql_Query_Async_Task();
1383
+        new Wordlift_Push_References_Async_Task();
1384
+
1385
+        /** WordPress Admin UI. */
1386
+
1387
+        // UI elements.
1388
+        $this->input_element           = new Wordlift_Admin_Input_Element();
1389
+        $this->radio_input_element     = new Wordlift_Admin_Radio_Input_Element();
1390
+        $this->select2_element         = new Wordlift_Admin_Select2_Element();
1391
+        $this->language_select_element = new Wordlift_Admin_Language_Select_Element();
1392
+        $this->country_select_element  = new Wordlift_Admin_Country_Select_Element();
1393
+        $tabs_element                  = new Wordlift_Admin_Tabs_Element();
1394
+        $this->publisher_element       = new Wordlift_Admin_Publisher_Element( $this->configuration_service, $this->publisher_service, $tabs_element, $this->select2_element );
1395
+        $this->author_element          = new Wordlift_Admin_Author_Element( $this->publisher_service, $this->select2_element );
1396
+
1397
+        $this->settings_page             = new Wordlift_Admin_Settings_Page( $this->configuration_service, $this->entity_service, $this->input_element, $this->language_select_element, $this->country_select_element, $this->publisher_element, $this->radio_input_element );
1398
+        $this->settings_page_action_link = new Wordlift_Admin_Settings_Page_Action_Link( $this->settings_page );
1399
+
1400
+        $this->analytics_settings_page             = new Wordlift_Admin_Settings_Analytics_Page( $this->configuration_service, $this->input_element, $this->radio_input_element );
1401
+        $this->analytics_settings_page_action_link = new Wordlift_Admin_Settings_Analytics_Page_Action_Link( $this->analytics_settings_page );
1402
+        $this->analytics_connect                   = new Wordlift_Analytics_Connect();
1403
+
1404
+        // Pages.
1405
+        /*
1406 1406
 		 * Call the `wl_can_see_classification_box` filter to determine whether we can display the classification box.
1407 1407
 		 *
1408 1408
 		 * @since 3.20.3
1409 1409
 		 *
1410 1410
 		 * @see https://github.com/insideout10/wordlift-plugin/issues/914
1411 1411
 		 */
1412
-		if ( apply_filters( 'wl_can_see_classification_box', true ) ) {
1413
-			require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-post-edit-page.php';
1414
-			new Wordlift_Admin_Post_Edit_Page( $this );
1415
-		}
1416
-		new Wordlift_Entity_Type_Admin_Service();
1412
+        if ( apply_filters( 'wl_can_see_classification_box', true ) ) {
1413
+            require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-post-edit-page.php';
1414
+            new Wordlift_Admin_Post_Edit_Page( $this );
1415
+        }
1416
+        new Wordlift_Entity_Type_Admin_Service();
1417 1417
 
1418
-		// create an instance of the entity type list admin page controller.
1419
-		$this->entity_type_admin_page = new Wordlift_Admin_Entity_Taxonomy_List_Page();
1418
+        // create an instance of the entity type list admin page controller.
1419
+        $this->entity_type_admin_page = new Wordlift_Admin_Entity_Taxonomy_List_Page();
1420 1420
 
1421
-		// create an instance of the entity type setting admin page controller.
1422
-		$this->entity_type_settings_admin_page = new Wordlift_Admin_Entity_Type_Settings();
1421
+        // create an instance of the entity type setting admin page controller.
1422
+        $this->entity_type_settings_admin_page = new Wordlift_Admin_Entity_Type_Settings();
1423 1423
 
1424
-		/** Widgets */
1425
-		$this->related_entities_cloud_widget = new Wordlift_Related_Entities_Cloud_Widget();
1424
+        /** Widgets */
1425
+        $this->related_entities_cloud_widget = new Wordlift_Related_Entities_Cloud_Widget();
1426 1426
 
1427
-		/* WordPress Admin. */
1428
-		$this->download_your_data_page = new Wordlift_Admin_Download_Your_Data_Page( $this->configuration_service );
1429
-		$this->status_page             = new Wordlift_Admin_Status_Page( $this->entity_service, $this->sparql_service );
1427
+        /* WordPress Admin. */
1428
+        $this->download_your_data_page = new Wordlift_Admin_Download_Your_Data_Page( $this->configuration_service );
1429
+        $this->status_page             = new Wordlift_Admin_Status_Page( $this->entity_service, $this->sparql_service );
1430 1430
 
1431
-		// Create an instance of the install wizard.
1432
-		$this->admin_setup = new Wordlift_Admin_Setup( $this->configuration_service, $this->key_validation_service, $this->entity_service, $this->language_select_element, $this->country_select_element );
1431
+        // Create an instance of the install wizard.
1432
+        $this->admin_setup = new Wordlift_Admin_Setup( $this->configuration_service, $this->key_validation_service, $this->entity_service, $this->language_select_element, $this->country_select_element );
1433 1433
 
1434
-		$this->category_taxonomy_service = new Wordlift_Category_Taxonomy_Service( $this->entity_post_type_service );
1434
+        $this->category_taxonomy_service = new Wordlift_Category_Taxonomy_Service( $this->entity_post_type_service );
1435 1435
 
1436
-		// User Profile.
1437
-		new Wordlift_Admin_User_Profile_Page( $this->author_element, $this->user_service );
1436
+        // User Profile.
1437
+        new Wordlift_Admin_User_Profile_Page( $this->author_element, $this->user_service );
1438 1438
 
1439
-		$this->entity_page_service = new Wordlift_Entity_Page_Service();
1439
+        $this->entity_page_service = new Wordlift_Entity_Page_Service();
1440 1440
 
1441
-		// Load the debug service if WP is in debug mode.
1442
-		if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
1443
-			require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-debug-service.php';
1444
-			new Wordlift_Debug_Service( $this->entity_service, $uri_service );
1445
-		}
1441
+        // Load the debug service if WP is in debug mode.
1442
+        if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
1443
+            require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-debug-service.php';
1444
+            new Wordlift_Debug_Service( $this->entity_service, $uri_service );
1445
+        }
1446 1446
 
1447
-		// Remote Image Service.
1448
-		new Wordlift_Remote_Image_Service();
1447
+        // Remote Image Service.
1448
+        new Wordlift_Remote_Image_Service();
1449 1449
 
1450
-		/*
1450
+        /*
1451 1451
 		 * Provides mappings between post types and entity types.
1452 1452
 		 *
1453 1453
 		 * @since 3.20.0
1454 1454
 		 *
1455 1455
 		 * @see https://github.com/insideout10/wordlift-plugin/issues/852.
1456 1456
 		 */
1457
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-batch-action.php';
1458
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/mapping/class-wordlift-mapping-service.php';
1459
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/mapping/class-wordlift-mapping-ajax-adapter.php';
1457
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-batch-action.php';
1458
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/mapping/class-wordlift-mapping-service.php';
1459
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/mapping/class-wordlift-mapping-ajax-adapter.php';
1460 1460
 
1461
-		// Create an instance of the Mapping Service and assign it to the Ajax Adapter.
1462
-		new Wordlift_Mapping_Ajax_Adapter( new Wordlift_Mapping_Service( Wordlift_Entity_Type_Service::get_instance() ) );
1461
+        // Create an instance of the Mapping Service and assign it to the Ajax Adapter.
1462
+        new Wordlift_Mapping_Ajax_Adapter( new Wordlift_Mapping_Service( Wordlift_Entity_Type_Service::get_instance() ) );
1463 1463
 
1464
-		/*
1464
+        /*
1465 1465
 		 * Batch Operations. They're similar to Batch Actions but do not require working on post types.
1466 1466
 		 *
1467 1467
 		 * Eventually Batch Actions will become Batch Operations.
1468 1468
 		 *
1469 1469
 		 * @since 3.20.0
1470 1470
 		 */
1471
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/batch/intf-wordlift-batch-operation.php';
1472
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/batch/class-wordlift-batch-operation-ajax-adapter.php';
1471
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/batch/intf-wordlift-batch-operation.php';
1472
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/batch/class-wordlift-batch-operation-ajax-adapter.php';
1473 1473
 
1474
-		/*
1474
+        /*
1475 1475
 		 * Add the Search Keywords taxonomy to manage the Search Keywords on WLS.
1476 1476
 		 *
1477 1477
 		 * @link https://github.com/insideout10/wordlift-plugin/issues/761
1478 1478
 		 *
1479 1479
 		 * @since 3.20.0
1480 1480
 		 */
1481
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/search-keywords/class-wordlift-search-keyword-taxonomy.php';
1482
-		new Wordlift_Search_Keyword_Taxonomy( $api_service );
1481
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/search-keywords/class-wordlift-search-keyword-taxonomy.php';
1482
+        new Wordlift_Search_Keyword_Taxonomy( $api_service );
1483 1483
 
1484
-		/*
1484
+        /*
1485 1485
 		 * Load the Mappings JSON-LD post processing.
1486 1486
 		 *
1487 1487
 		 * @since 3.25.0
1488 1488
 		 */
1489 1489
 
1490
-		$mappings_dbo           = new Mappings_DBO();
1491
-		$default_rule_validator = new Taxonomy_Rule_Validator();
1492
-		new Post_Type_Rule_Validator();
1493
-		// Taxonomy term rule validator for validating rules for term pages.
1494
-		new Taxonomy_Term_Rule_Validator();
1495
-		$rule_validators_registry = new Rule_Validators_Registry( $default_rule_validator );
1496
-		$rule_groups_validator    = new Rule_Groups_Validator( $rule_validators_registry );
1497
-		$mappings_validator       = new Mappings_Validator( $mappings_dbo, $rule_groups_validator );
1498
-
1499
-		new Url_To_Entity_Transform_Function( $this->entity_uri_service );
1500
-		new Taxonomy_To_Terms_Transform_Function();
1501
-		new Post_Id_To_Entity_Transform_Function();
1502
-		$mappings_transform_functions_registry = new Mappings_Transform_Functions_Registry();
1503
-
1504
-		/**
1505
-		 * @since 3.27.1
1506
-		 * Intiailize the acf group data formatter.
1507
-		 */
1508
-		new Acf_Group_Formatter();
1509
-		new Jsonld_Converter( $mappings_validator, $mappings_transform_functions_registry );
1510
-
1511
-		/**
1512
-		 * @since 3.26.0
1513
-		 * Initialize the Faq JSON LD converter here - disabled.
1514
-		 */
1515
-		// new Faq_To_Jsonld_Converter();
1516
-		/*
1490
+        $mappings_dbo           = new Mappings_DBO();
1491
+        $default_rule_validator = new Taxonomy_Rule_Validator();
1492
+        new Post_Type_Rule_Validator();
1493
+        // Taxonomy term rule validator for validating rules for term pages.
1494
+        new Taxonomy_Term_Rule_Validator();
1495
+        $rule_validators_registry = new Rule_Validators_Registry( $default_rule_validator );
1496
+        $rule_groups_validator    = new Rule_Groups_Validator( $rule_validators_registry );
1497
+        $mappings_validator       = new Mappings_Validator( $mappings_dbo, $rule_groups_validator );
1498
+
1499
+        new Url_To_Entity_Transform_Function( $this->entity_uri_service );
1500
+        new Taxonomy_To_Terms_Transform_Function();
1501
+        new Post_Id_To_Entity_Transform_Function();
1502
+        $mappings_transform_functions_registry = new Mappings_Transform_Functions_Registry();
1503
+
1504
+        /**
1505
+         * @since 3.27.1
1506
+         * Intiailize the acf group data formatter.
1507
+         */
1508
+        new Acf_Group_Formatter();
1509
+        new Jsonld_Converter( $mappings_validator, $mappings_transform_functions_registry );
1510
+
1511
+        /**
1512
+         * @since 3.26.0
1513
+         * Initialize the Faq JSON LD converter here - disabled.
1514
+         */
1515
+        // new Faq_To_Jsonld_Converter();
1516
+        /*
1517 1517
 		 * Use the Templates Ajax Endpoint to load HTML templates for the legacy Angular app via admin-ajax.php
1518 1518
 		 * end-point.
1519 1519
 		 *
1520 1520
 		 * @see https://github.com/insideout10/wordlift-plugin/issues/834
1521 1521
 		 * @since 3.24.4
1522 1522
 		 */
1523
-		new Templates_Ajax_Endpoint();
1524
-		// Call this static method to register FAQ routes to rest api - disabled
1525
-		//Faq_Rest_Controller::register_routes();
1523
+        new Templates_Ajax_Endpoint();
1524
+        // Call this static method to register FAQ routes to rest api - disabled
1525
+        //Faq_Rest_Controller::register_routes();
1526 1526
 
1527
-		/*
1527
+        /*
1528 1528
 		 * Create a singleton for the Analysis_Response_Ops_Factory.
1529 1529
 		 */
1530
-		$entity_helper = new Entity_Helper( $this->entity_uri_service, $this->entity_service );
1531
-		new Analysis_Response_Ops_Factory(
1532
-			$this->entity_uri_service,
1533
-			$this->entity_service,
1534
-			$this->entity_type_service,
1535
-			$this->storage_factory->post_images(),
1536
-			$entity_helper
1537
-		);
1538
-
1539
-		/** WL Autocomplete. */
1540
-		$autocomplete_service       = new All_Autocomplete_Service( array(
1541
-			new Local_Autocomplete_Service(),
1542
-			new Linked_Data_Autocomplete_Service( $this->configuration_service, $entity_helper, $this->entity_uri_service, $this->entity_service ),
1543
-		) );
1544
-		$this->autocomplete_adapter = new Wordlift_Autocomplete_Adapter( $autocomplete_service );
1545
-
1546
-		/**
1547
-		 * @since 3.27.2
1548
-		 * Integrate the recipe maker jsonld & set recipe
1549
-		 * as default entity type to the wprm_recipe CPT.
1550
-		 */
1551
-		new Recipe_Maker_Post_Type_Hook();
1552
-		$recipe_maker_validation_service = new Recipe_Maker_Validation_Service();
1553
-		new Recipe_Maker_Jsonld_Hook( $attachment_service, $recipe_maker_validation_service );
1554
-		new Recipe_Maker_After_Get_Jsonld_Hook( $recipe_maker_validation_service );
1555
-		new Recipe_Maker_Warning( $recipe_maker_validation_service );
1556
-		new Yoast_Jsonld( $recipe_maker_validation_service );
1557
-
1558
-		/**
1559
-		 * @since 3.27.4
1560
-		 * Add the faq duplicate markup hook.
1561
-		 */
1562
-		new Faq_Duplicate_Markup_Remover();
1563
-	}
1564
-
1565
-	/**
1566
-	 * Define the locale for this plugin for internationalization.
1567
-	 *
1568
-	 * Uses the Wordlift_i18n class in order to set the domain and to register the hook
1569
-	 * with WordPress.
1570
-	 *
1571
-	 * @since    1.0.0
1572
-	 * @access   private
1573
-	 */
1574
-	private function set_locale() {
1575
-
1576
-		$plugin_i18n = new Wordlift_i18n();
1577
-		$plugin_i18n->set_domain( $this->get_plugin_name() );
1578
-
1579
-		$this->loader->add_action( 'plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' );
1580
-
1581
-	}
1582
-
1583
-	/**
1584
-	 * Register all of the hooks related to the admin area functionality
1585
-	 * of the plugin.
1586
-	 *
1587
-	 * @since    1.0.0
1588
-	 * @access   private
1589
-	 */
1590
-	private function define_admin_hooks() {
1591
-
1592
-		$plugin_admin = new Wordlift_Admin(
1593
-			$this->get_plugin_name(),
1594
-			$this->get_version(),
1595
-			$this->configuration_service,
1596
-			$this->notice_service,
1597
-			$this->user_service
1598
-		);
1599
-
1600
-		$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' );
1601
-		$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts', 11 );
1602
-
1603
-		// Hook the init action to taxonomy services.
1604
-		$this->loader->add_action( 'init', $this->topic_taxonomy_service, 'init', 0 );
1605
-		$this->loader->add_action( 'init', $this->entity_types_taxonomy_service, 'init', 0 );
1606
-
1607
-		// Hook the deleted_post_meta action to the Thumbnail service.
1608
-		$this->loader->add_action( 'deleted_post_meta', $this->thumbnail_service, 'deleted_post_meta', 10, 4 );
1609
-
1610
-		// Hook the added_post_meta action to the Thumbnail service.
1611
-		$this->loader->add_action( 'added_post_meta', $this->thumbnail_service, 'added_or_updated_post_meta', 10, 4 );
1612
-
1613
-		// Hook the updated_post_meta action to the Thumbnail service.
1614
-		$this->loader->add_action( 'updated_post_meta', $this->thumbnail_service, 'added_or_updated_post_meta', 10, 4 );
1615
-
1616
-		// Hook the AJAX wl_timeline action to the Timeline service.
1617
-		$this->loader->add_action( 'wp_ajax_wl_timeline', $this->timeline_service, 'ajax_timeline' );
1618
-
1619
-		// Register custom allowed redirect hosts.
1620
-		$this->loader->add_filter( 'allowed_redirect_hosts', $this->redirect_service, 'allowed_redirect_hosts' );
1621
-		// Hook the AJAX wordlift_redirect action to the Redirect service.
1622
-		$this->loader->add_action( 'wp_ajax_wordlift_redirect', $this->redirect_service, 'ajax_redirect' );
1623
-
1624
-		/*
1530
+        $entity_helper = new Entity_Helper( $this->entity_uri_service, $this->entity_service );
1531
+        new Analysis_Response_Ops_Factory(
1532
+            $this->entity_uri_service,
1533
+            $this->entity_service,
1534
+            $this->entity_type_service,
1535
+            $this->storage_factory->post_images(),
1536
+            $entity_helper
1537
+        );
1538
+
1539
+        /** WL Autocomplete. */
1540
+        $autocomplete_service       = new All_Autocomplete_Service( array(
1541
+            new Local_Autocomplete_Service(),
1542
+            new Linked_Data_Autocomplete_Service( $this->configuration_service, $entity_helper, $this->entity_uri_service, $this->entity_service ),
1543
+        ) );
1544
+        $this->autocomplete_adapter = new Wordlift_Autocomplete_Adapter( $autocomplete_service );
1545
+
1546
+        /**
1547
+         * @since 3.27.2
1548
+         * Integrate the recipe maker jsonld & set recipe
1549
+         * as default entity type to the wprm_recipe CPT.
1550
+         */
1551
+        new Recipe_Maker_Post_Type_Hook();
1552
+        $recipe_maker_validation_service = new Recipe_Maker_Validation_Service();
1553
+        new Recipe_Maker_Jsonld_Hook( $attachment_service, $recipe_maker_validation_service );
1554
+        new Recipe_Maker_After_Get_Jsonld_Hook( $recipe_maker_validation_service );
1555
+        new Recipe_Maker_Warning( $recipe_maker_validation_service );
1556
+        new Yoast_Jsonld( $recipe_maker_validation_service );
1557
+
1558
+        /**
1559
+         * @since 3.27.4
1560
+         * Add the faq duplicate markup hook.
1561
+         */
1562
+        new Faq_Duplicate_Markup_Remover();
1563
+    }
1564
+
1565
+    /**
1566
+     * Define the locale for this plugin for internationalization.
1567
+     *
1568
+     * Uses the Wordlift_i18n class in order to set the domain and to register the hook
1569
+     * with WordPress.
1570
+     *
1571
+     * @since    1.0.0
1572
+     * @access   private
1573
+     */
1574
+    private function set_locale() {
1575
+
1576
+        $plugin_i18n = new Wordlift_i18n();
1577
+        $plugin_i18n->set_domain( $this->get_plugin_name() );
1578
+
1579
+        $this->loader->add_action( 'plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' );
1580
+
1581
+    }
1582
+
1583
+    /**
1584
+     * Register all of the hooks related to the admin area functionality
1585
+     * of the plugin.
1586
+     *
1587
+     * @since    1.0.0
1588
+     * @access   private
1589
+     */
1590
+    private function define_admin_hooks() {
1591
+
1592
+        $plugin_admin = new Wordlift_Admin(
1593
+            $this->get_plugin_name(),
1594
+            $this->get_version(),
1595
+            $this->configuration_service,
1596
+            $this->notice_service,
1597
+            $this->user_service
1598
+        );
1599
+
1600
+        $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' );
1601
+        $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts', 11 );
1602
+
1603
+        // Hook the init action to taxonomy services.
1604
+        $this->loader->add_action( 'init', $this->topic_taxonomy_service, 'init', 0 );
1605
+        $this->loader->add_action( 'init', $this->entity_types_taxonomy_service, 'init', 0 );
1606
+
1607
+        // Hook the deleted_post_meta action to the Thumbnail service.
1608
+        $this->loader->add_action( 'deleted_post_meta', $this->thumbnail_service, 'deleted_post_meta', 10, 4 );
1609
+
1610
+        // Hook the added_post_meta action to the Thumbnail service.
1611
+        $this->loader->add_action( 'added_post_meta', $this->thumbnail_service, 'added_or_updated_post_meta', 10, 4 );
1612
+
1613
+        // Hook the updated_post_meta action to the Thumbnail service.
1614
+        $this->loader->add_action( 'updated_post_meta', $this->thumbnail_service, 'added_or_updated_post_meta', 10, 4 );
1615
+
1616
+        // Hook the AJAX wl_timeline action to the Timeline service.
1617
+        $this->loader->add_action( 'wp_ajax_wl_timeline', $this->timeline_service, 'ajax_timeline' );
1618
+
1619
+        // Register custom allowed redirect hosts.
1620
+        $this->loader->add_filter( 'allowed_redirect_hosts', $this->redirect_service, 'allowed_redirect_hosts' );
1621
+        // Hook the AJAX wordlift_redirect action to the Redirect service.
1622
+        $this->loader->add_action( 'wp_ajax_wordlift_redirect', $this->redirect_service, 'ajax_redirect' );
1623
+
1624
+        /*
1625 1625
 		 * The old dashboard is replaced with dashboard v2.
1626 1626
 		 *
1627 1627
 		 * The old dashboard service is still loaded because its functions are used.
@@ -1630,354 +1630,354 @@  discard block
 block discarded – undo
1630 1630
 		 *
1631 1631
 		 * @since 3.20.0
1632 1632
 		 */
1633
-		// Hook the AJAX wordlift_redirect action to the Redirect service.
1634
-		// $this->loader->add_action( 'wp_ajax_wordlift_get_stats', $this->dashboard_service, 'ajax_get_stats' );
1635
-		// Hook the AJAX wordlift_redirect action to the Redirect service.
1636
-		// $this->loader->add_action( 'wp_dashboard_setup', $this->dashboard_service, 'add_dashboard_widgets' );
1637
-
1638
-		// Hook save_post to the entity service to update custom fields (such as alternate labels).
1639
-		// We have a priority of 9 because we want to be executed before data is sent to Redlink.
1640
-		$this->loader->add_action( 'save_post', $this->entity_service, 'save_post', 9, 3 );
1641
-		$this->loader->add_action( 'save_post', $this->rating_service, 'set_rating_for', 20, 1 );
1642
-
1643
-		$this->loader->add_action( 'edit_form_before_permalink', $this->entity_service, 'edit_form_before_permalink', 10, 1 );
1644
-		$this->loader->add_action( 'in_admin_header', $this->rating_service, 'in_admin_header' );
1645
-
1646
-		// Entity listing customization (wp-admin/edit.php)
1647
-		// Add custom columns.
1648
-		$this->loader->add_filter( 'manage_entity_posts_columns', $this->entity_list_service, 'register_custom_columns' );
1649
-		// no explicit entity as it prevents handling of other post types.
1650
-		$this->loader->add_filter( 'manage_posts_custom_column', $this->entity_list_service, 'render_custom_columns', 10, 2 );
1651
-		// Add 4W selection.
1652
-		$this->loader->add_action( 'restrict_manage_posts', $this->entity_list_service, 'restrict_manage_posts_classification_scope' );
1653
-		$this->loader->add_filter( 'posts_clauses', $this->entity_list_service, 'posts_clauses_classification_scope' );
1654
-		$this->loader->add_action( 'pre_get_posts', $this->entity_list_service, 'pre_get_posts' );
1655
-		$this->loader->add_action( 'load-edit.php', $this->entity_list_service, 'load_edit' );
1656
-
1657
-		/*
1633
+        // Hook the AJAX wordlift_redirect action to the Redirect service.
1634
+        // $this->loader->add_action( 'wp_ajax_wordlift_get_stats', $this->dashboard_service, 'ajax_get_stats' );
1635
+        // Hook the AJAX wordlift_redirect action to the Redirect service.
1636
+        // $this->loader->add_action( 'wp_dashboard_setup', $this->dashboard_service, 'add_dashboard_widgets' );
1637
+
1638
+        // Hook save_post to the entity service to update custom fields (such as alternate labels).
1639
+        // We have a priority of 9 because we want to be executed before data is sent to Redlink.
1640
+        $this->loader->add_action( 'save_post', $this->entity_service, 'save_post', 9, 3 );
1641
+        $this->loader->add_action( 'save_post', $this->rating_service, 'set_rating_for', 20, 1 );
1642
+
1643
+        $this->loader->add_action( 'edit_form_before_permalink', $this->entity_service, 'edit_form_before_permalink', 10, 1 );
1644
+        $this->loader->add_action( 'in_admin_header', $this->rating_service, 'in_admin_header' );
1645
+
1646
+        // Entity listing customization (wp-admin/edit.php)
1647
+        // Add custom columns.
1648
+        $this->loader->add_filter( 'manage_entity_posts_columns', $this->entity_list_service, 'register_custom_columns' );
1649
+        // no explicit entity as it prevents handling of other post types.
1650
+        $this->loader->add_filter( 'manage_posts_custom_column', $this->entity_list_service, 'render_custom_columns', 10, 2 );
1651
+        // Add 4W selection.
1652
+        $this->loader->add_action( 'restrict_manage_posts', $this->entity_list_service, 'restrict_manage_posts_classification_scope' );
1653
+        $this->loader->add_filter( 'posts_clauses', $this->entity_list_service, 'posts_clauses_classification_scope' );
1654
+        $this->loader->add_action( 'pre_get_posts', $this->entity_list_service, 'pre_get_posts' );
1655
+        $this->loader->add_action( 'load-edit.php', $this->entity_list_service, 'load_edit' );
1656
+
1657
+        /*
1658 1658
 		 * If `All Entity Types` is disable, use the radio button Walker.
1659 1659
 		 *
1660 1660
 		 * @see https://github.com/insideout10/wordlift-plugin/issues/835
1661 1661
 		 */
1662
-		if ( ! WL_ALL_ENTITY_TYPES ) {
1663
-			$this->loader->add_filter( 'wp_terms_checklist_args', $this->entity_types_taxonomy_walker, 'terms_checklist_args' );
1664
-		}
1665
-
1666
-		// Hook the PrimaShop adapter to <em>prima_metabox_entity_header_args</em> in order to add header support for
1667
-		// entities.
1668
-		$this->loader->add_filter( 'prima_metabox_entity_header_args', $this->primashop_adapter, 'prima_metabox_entity_header_args', 10, 2 );
1669
-
1670
-		// Filter imported post meta.
1671
-		$this->loader->add_filter( 'wp_import_post_meta', $this->import_service, 'wp_import_post_meta', 10, 3 );
1672
-
1673
-		// Notify the import service when an import starts and ends.
1674
-		$this->loader->add_action( 'import_start', $this->import_service, 'import_start', 10, 0 );
1675
-		$this->loader->add_action( 'import_end', $this->import_service, 'import_end', 10, 0 );
1676
-
1677
-		// Hook the AJAX wl_rebuild action to the Rebuild Service.
1678
-		$this->loader->add_action( 'wp_ajax_wl_rebuild', $this->rebuild_service, 'rebuild' );
1679
-		$this->loader->add_action( 'wp_ajax_wl_rebuild_references', $this->reference_rebuild_service, 'rebuild' );
1680
-
1681
-		/**
1682
-		 * Filter: wl_feature__enable__screens.
1683
-		 *
1684
-		 * @param bool whether the screens needed to be registered, defaults to true.
1685
-		 *
1686
-		 * @return bool
1687
-		 * @since 3.27.6
1688
-		 */
1689
-		if ( apply_filters( 'wl_feature__enable__screens', true ) ) {
1690
-			// Hook the menu to the Download Your Data page.
1691
-			$this->loader->add_action( 'admin_menu', $this->download_your_data_page, 'admin_menu', 100, 0 );
1692
-			$this->loader->add_action( 'admin_menu', $this->status_page, 'admin_menu', 100, 0 );
1693
-			$this->loader->add_action( 'admin_menu', $this->entity_type_settings_admin_page, 'admin_menu', 100, 0 );
1694
-		}
1695
-		// Hook the admin-ajax.php?action=wl_download_your_data&out=xyz links.
1696
-		$this->loader->add_action( 'wp_ajax_wl_download_your_data', $this->download_your_data_page, 'download_your_data', 10 );
1697
-
1698
-		// Hook the AJAX wl_jsonld action to the JSON-LD service.
1699
-		$this->loader->add_action( 'wp_ajax_wl_jsonld', $this->jsonld_service, 'get' );
1700
-		$this->loader->add_action( 'admin_post_wl_jsonld', $this->jsonld_service, 'get' );
1701
-		$this->loader->add_action( 'admin_post_nopriv_wl_jsonld', $this->jsonld_service, 'get' );
1702
-
1703
-		// Hook the AJAX wl_validate_key action to the Key Validation service.
1704
-		$this->loader->add_action( 'wp_ajax_wl_validate_key', $this->key_validation_service, 'validate_key' );
1705
-
1706
-		// Hook the AJAX wl_update_country_options action to the countries.
1707
-		$this->loader->add_action( 'wp_ajax_wl_update_country_options', $this->country_select_element, 'get_options_html' );
1708
-
1709
-		// Hook the `admin_init` function to the Admin Setup.
1710
-		$this->loader->add_action( 'admin_init', $this->admin_setup, 'admin_init' );
1711
-
1712
-		// Hook the admin_init to the settings page.
1713
-		$this->loader->add_action( 'admin_init', $this->settings_page, 'admin_init' );
1714
-		$this->loader->add_action( 'admin_init', $this->analytics_settings_page, 'admin_init' );
1715
-
1716
-		$this->loader->add_filter( 'admin_post_thumbnail_html', $this->publisher_service, 'add_featured_image_instruction' );
1717
-
1718
-		// Hook the menu creation on the general wordlift menu creation.
1719
-		/**
1720
-		 * Filter: wl_feature__enable__screens.
1721
-		 *
1722
-		 * @param bool whether the screens needed to be registered, defaults to true.
1723
-		 *
1724
-		 * @return bool
1725
-		 * @since 3.27.6
1726
-		 */
1727
-		if ( apply_filters( 'wl_feature__enable__screens', true ) ) {
1728
-			$this->loader->add_action( 'wl_admin_menu', $this->settings_page, 'admin_menu', 10, 2 );
1729
-		}
1730
-		/*
1662
+        if ( ! WL_ALL_ENTITY_TYPES ) {
1663
+            $this->loader->add_filter( 'wp_terms_checklist_args', $this->entity_types_taxonomy_walker, 'terms_checklist_args' );
1664
+        }
1665
+
1666
+        // Hook the PrimaShop adapter to <em>prima_metabox_entity_header_args</em> in order to add header support for
1667
+        // entities.
1668
+        $this->loader->add_filter( 'prima_metabox_entity_header_args', $this->primashop_adapter, 'prima_metabox_entity_header_args', 10, 2 );
1669
+
1670
+        // Filter imported post meta.
1671
+        $this->loader->add_filter( 'wp_import_post_meta', $this->import_service, 'wp_import_post_meta', 10, 3 );
1672
+
1673
+        // Notify the import service when an import starts and ends.
1674
+        $this->loader->add_action( 'import_start', $this->import_service, 'import_start', 10, 0 );
1675
+        $this->loader->add_action( 'import_end', $this->import_service, 'import_end', 10, 0 );
1676
+
1677
+        // Hook the AJAX wl_rebuild action to the Rebuild Service.
1678
+        $this->loader->add_action( 'wp_ajax_wl_rebuild', $this->rebuild_service, 'rebuild' );
1679
+        $this->loader->add_action( 'wp_ajax_wl_rebuild_references', $this->reference_rebuild_service, 'rebuild' );
1680
+
1681
+        /**
1682
+         * Filter: wl_feature__enable__screens.
1683
+         *
1684
+         * @param bool whether the screens needed to be registered, defaults to true.
1685
+         *
1686
+         * @return bool
1687
+         * @since 3.27.6
1688
+         */
1689
+        if ( apply_filters( 'wl_feature__enable__screens', true ) ) {
1690
+            // Hook the menu to the Download Your Data page.
1691
+            $this->loader->add_action( 'admin_menu', $this->download_your_data_page, 'admin_menu', 100, 0 );
1692
+            $this->loader->add_action( 'admin_menu', $this->status_page, 'admin_menu', 100, 0 );
1693
+            $this->loader->add_action( 'admin_menu', $this->entity_type_settings_admin_page, 'admin_menu', 100, 0 );
1694
+        }
1695
+        // Hook the admin-ajax.php?action=wl_download_your_data&out=xyz links.
1696
+        $this->loader->add_action( 'wp_ajax_wl_download_your_data', $this->download_your_data_page, 'download_your_data', 10 );
1697
+
1698
+        // Hook the AJAX wl_jsonld action to the JSON-LD service.
1699
+        $this->loader->add_action( 'wp_ajax_wl_jsonld', $this->jsonld_service, 'get' );
1700
+        $this->loader->add_action( 'admin_post_wl_jsonld', $this->jsonld_service, 'get' );
1701
+        $this->loader->add_action( 'admin_post_nopriv_wl_jsonld', $this->jsonld_service, 'get' );
1702
+
1703
+        // Hook the AJAX wl_validate_key action to the Key Validation service.
1704
+        $this->loader->add_action( 'wp_ajax_wl_validate_key', $this->key_validation_service, 'validate_key' );
1705
+
1706
+        // Hook the AJAX wl_update_country_options action to the countries.
1707
+        $this->loader->add_action( 'wp_ajax_wl_update_country_options', $this->country_select_element, 'get_options_html' );
1708
+
1709
+        // Hook the `admin_init` function to the Admin Setup.
1710
+        $this->loader->add_action( 'admin_init', $this->admin_setup, 'admin_init' );
1711
+
1712
+        // Hook the admin_init to the settings page.
1713
+        $this->loader->add_action( 'admin_init', $this->settings_page, 'admin_init' );
1714
+        $this->loader->add_action( 'admin_init', $this->analytics_settings_page, 'admin_init' );
1715
+
1716
+        $this->loader->add_filter( 'admin_post_thumbnail_html', $this->publisher_service, 'add_featured_image_instruction' );
1717
+
1718
+        // Hook the menu creation on the general wordlift menu creation.
1719
+        /**
1720
+         * Filter: wl_feature__enable__screens.
1721
+         *
1722
+         * @param bool whether the screens needed to be registered, defaults to true.
1723
+         *
1724
+         * @return bool
1725
+         * @since 3.27.6
1726
+         */
1727
+        if ( apply_filters( 'wl_feature__enable__screens', true ) ) {
1728
+            $this->loader->add_action( 'wl_admin_menu', $this->settings_page, 'admin_menu', 10, 2 );
1729
+        }
1730
+        /*
1731 1731
 		 * Display the `Wordlift_Admin_Search_Rankings_Page` page.
1732 1732
 		 *
1733 1733
 		 * @link https://github.com/insideout10/wordlift-plugin/issues/761
1734 1734
 		 *
1735 1735
 		 * @since 3.20.0
1736 1736
 		 */
1737
-		if ( in_array( $this->configuration_service->get_package_type(), array( 'editorial', 'business' ) ) ) {
1738
-			/**
1739
-			 * Filter: wl_feature__enable__screens.
1740
-			 *
1741
-			 * @param bool whether the screens needed to be registered, defaults to true.
1742
-			 *
1743
-			 * @return bool
1744
-			 * @since 3.27.6
1745
-			 */
1746
-			if ( apply_filters( 'wl_feature__enable__screens', true ) ) {
1747
-				$admin_search_rankings_page = new Wordlift_Admin_Search_Rankings_Page();
1748
-				$this->loader->add_action( 'wl_admin_menu', $admin_search_rankings_page, 'admin_menu' );
1749
-			}
1750
-		}
1751
-
1752
-		// Hook key update.
1753
-		$this->loader->add_action( 'pre_update_option_wl_general_settings', $this->configuration_service, 'maybe_update_dataset_uri', 10, 2 );
1754
-		$this->loader->add_action( 'update_option_wl_general_settings', $this->configuration_service, 'update_key', 10, 2 );
1755
-
1756
-		// Add additional action links to the WordLift plugin in the plugins page.
1757
-		$this->loader->add_filter( 'plugin_action_links_wordlift/wordlift.php', $this->settings_page_action_link, 'action_links', 10, 1 );
1758
-
1759
-		/*
1737
+        if ( in_array( $this->configuration_service->get_package_type(), array( 'editorial', 'business' ) ) ) {
1738
+            /**
1739
+             * Filter: wl_feature__enable__screens.
1740
+             *
1741
+             * @param bool whether the screens needed to be registered, defaults to true.
1742
+             *
1743
+             * @return bool
1744
+             * @since 3.27.6
1745
+             */
1746
+            if ( apply_filters( 'wl_feature__enable__screens', true ) ) {
1747
+                $admin_search_rankings_page = new Wordlift_Admin_Search_Rankings_Page();
1748
+                $this->loader->add_action( 'wl_admin_menu', $admin_search_rankings_page, 'admin_menu' );
1749
+            }
1750
+        }
1751
+
1752
+        // Hook key update.
1753
+        $this->loader->add_action( 'pre_update_option_wl_general_settings', $this->configuration_service, 'maybe_update_dataset_uri', 10, 2 );
1754
+        $this->loader->add_action( 'update_option_wl_general_settings', $this->configuration_service, 'update_key', 10, 2 );
1755
+
1756
+        // Add additional action links to the WordLift plugin in the plugins page.
1757
+        $this->loader->add_filter( 'plugin_action_links_wordlift/wordlift.php', $this->settings_page_action_link, 'action_links', 10, 1 );
1758
+
1759
+        /*
1760 1760
 		 * Remove the Analytics Settings link from the plugin page.
1761 1761
 		 *
1762 1762
 		 * @see https://github.com/insideout10/wordlift-plugin/issues/932
1763 1763
 		 * @since 3.21.1
1764 1764
 		 */
1765
-		// $this->loader->add_filter( 'plugin_action_links_wordlift/wordlift.php', $this->analytics_settings_page_action_link, 'action_links', 10, 1 );
1766
-
1767
-		// Hook the AJAX `wl_publisher` action name.
1768
-		$this->loader->add_action( 'wp_ajax_wl_publisher', $this->publisher_ajax_adapter, 'publisher' );
1769
-
1770
-		// Hook row actions for the entity type list admin.
1771
-		$this->loader->add_filter( 'wl_entity_type_row_actions', $this->entity_type_admin_page, 'wl_entity_type_row_actions', 10, 2 );
1772
-
1773
-		/** Ajax actions. */
1774
-		$this->loader->add_action( 'wp_ajax_wl_google_analytics_export', $this->google_analytics_export_service, 'export' );
1775
-
1776
-		// Hook capabilities manipulation to allow access to entity type admin
1777
-		// page  on WordPress versions before 4.7.
1778
-		global $wp_version;
1779
-		if ( version_compare( $wp_version, '4.7', '<' ) ) {
1780
-			$this->loader->add_filter( 'map_meta_cap', $this->entity_type_admin_page, 'enable_admin_access_pre_47', 10, 4 );
1781
-		}
1782
-
1783
-		$this->loader->add_action( 'wl_async_wl_run_sparql_query', $this->sparql_service, 'run_sparql_query', 10, 1 );
1784
-
1785
-		/** Adapters. */
1786
-		$this->loader->add_filter( 'mce_external_plugins', $this->tinymce_adapter, 'mce_external_plugins', 10, 1 );
1787
-		/**
1788
-		 * Disabling Faq temporarily.
1789
-		 * Load the tinymce editor button on the tool bar.
1790
-		 * @since 3.26.0
1791
-		 */
1792
-		//$this->loader->add_filter( 'tiny_mce_before_init', $this->faq_tinymce_adapter, 'register_custom_tags' );
1793
-		//$this->loader->add_filter( 'mce_buttons', $this->faq_tinymce_adapter, 'register_faq_toolbar_button', 10, 1 );
1794
-		//$this->loader->add_filter( 'mce_external_plugins', $this->faq_tinymce_adapter, 'register_faq_tinymce_plugin', 10, 1 );
1795
-
1796
-
1797
-		$this->loader->add_action( 'wp_ajax_wl_relation_rebuild_process_all', $this->relation_rebuild_adapter, 'process_all' );
1798
-		$this->loader->add_action( 'wp_ajax_wl_sample_data_create', $this->sample_data_ajax_adapter, 'create' );
1799
-		$this->loader->add_action( 'wp_ajax_wl_sample_data_delete', $this->sample_data_ajax_adapter, 'delete' );
1800
-		/**
1801
-		 * @since 3.26.0
1802
-		 * Post excerpt meta box would be only loaded when the language is set
1803
-		 * to english
1804
-		 */
1805
-		if ( apply_filters( 'wl_feature__enable__post_excerpt', true ) ) {
1806
-			$excerpt_adapter = new Post_Excerpt_Meta_Box_Adapter();
1807
-			$this->loader->add_action( 'do_meta_boxes', $excerpt_adapter, 'replace_post_excerpt_meta_box' );
1808
-			// Adding Rest route for the post excerpt
1809
-			Post_Excerpt_Rest_Controller::register_routes();
1810
-		}
1811
-
1812
-		$this->loader->add_action( 'update_user_metadata', $this->user_service, 'update_user_metadata', 10, 5 );
1813
-		$this->loader->add_action( 'delete_user_metadata', $this->user_service, 'delete_user_metadata', 10, 5 );
1814
-
1815
-		// Handle the autocomplete request.
1816
-		add_action( 'wp_ajax_wl_autocomplete', array(
1817
-			$this->autocomplete_adapter,
1818
-			'wl_autocomplete',
1819
-		) );
1820
-		add_action( 'wp_ajax_nopriv_wl_autocomplete', array(
1821
-			$this->autocomplete_adapter,
1822
-			'wl_autocomplete',
1823
-		) );
1824
-
1825
-		// Hooks to restrict multisite super admin from manipulating entity types.
1826
-		if ( is_multisite() ) {
1827
-			$this->loader->add_filter( 'map_meta_cap', $this->entity_type_admin_page, 'restrict_super_admin', 10, 4 );
1828
-		}
1829
-
1830
-		$deactivator_feedback = new Wordlift_Deactivator_Feedback( $this->configuration_service );
1831
-
1832
-		add_action( 'admin_footer', array( $deactivator_feedback, 'render_feedback_popup' ) );
1833
-		add_action( 'admin_enqueue_scripts', array( $deactivator_feedback, 'enqueue_popup_scripts' ) );
1834
-		add_action( 'wp_ajax_wl_deactivation_feedback', array( $deactivator_feedback, 'wl_deactivation_feedback' ) );
1835
-
1836
-		/**
1837
-		 * Always allow the `wordlift/classification` block.
1838
-		 *
1839
-		 * @since 3.23.0
1840
-		 */
1841
-		add_filter( 'allowed_block_types', function ( $value ) {
1842
-
1843
-			if ( true === $value ) {
1844
-				return $value;
1845
-			}
1846
-
1847
-			return array_merge( (array) $value, array( 'wordlift/classification' ) );
1848
-		}, PHP_INT_MAX );
1849
-	}
1850
-
1851
-	/**
1852
-	 * Register all of the hooks related to the public-facing functionality
1853
-	 * of the plugin.
1854
-	 *
1855
-	 * @since    1.0.0
1856
-	 * @access   private
1857
-	 */
1858
-	private function define_public_hooks() {
1859
-
1860
-		$plugin_public = new Wordlift_Public( $this->get_plugin_name(), $this->get_version() );
1861
-
1862
-		// Register the entity post type.
1863
-		$this->loader->add_action( 'init', $this->entity_post_type_service, 'register' );
1864
-
1865
-		// Bind the link generation and handling hooks to the entity link service.
1866
-		$this->loader->add_filter( 'post_type_link', $this->entity_link_service, 'post_type_link', 10, 4 );
1867
-		$this->loader->add_action( 'pre_get_posts', $this->entity_link_service, 'pre_get_posts', PHP_INT_MAX, 1 );
1868
-		$this->loader->add_filter( 'wp_unique_post_slug_is_bad_flat_slug', $this->entity_link_service, 'wp_unique_post_slug_is_bad_flat_slug', 10, 3 );
1869
-		$this->loader->add_filter( 'wp_unique_post_slug_is_bad_hierarchical_slug', $this->entity_link_service, 'wp_unique_post_slug_is_bad_hierarchical_slug', 10, 4 );
1870
-
1871
-		$this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_styles' );
1872
-		$this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' );
1873
-		$this->loader->add_action( 'wp_enqueue_scripts', $this->context_cards_service, 'enqueue_scripts' );
1874
-
1875
-		// Registering Faq_Content_Filter service used for removing faq question and answer tags from the html.
1876
-		$this->loader->add_filter( 'the_content', $this->faq_content_filter_service, 'remove_all_faq_question_and_answer_tags' );
1877
-		// Hook the content filter service to add entity links.
1878
-		if ( ! defined( 'WL_DISABLE_CONTENT_FILTER' ) || ! WL_DISABLE_CONTENT_FILTER ) {
1879
-			$this->loader->add_filter( 'the_content', $this->content_filter_service, 'the_content' );
1880
-		}
1881
-
1882
-		// Hook the AJAX wl_timeline action to the Timeline service.
1883
-		$this->loader->add_action( 'wp_ajax_nopriv_wl_timeline', $this->timeline_service, 'ajax_timeline' );
1884
-
1885
-		// Hook the ShareThis service.
1886
-		$this->loader->add_filter( 'the_content', $this->sharethis_service, 'the_content', 99 );
1887
-		$this->loader->add_filter( 'the_excerpt', $this->sharethis_service, 'the_excerpt', 99 );
1888
-
1889
-		// Hook the AJAX wl_jsonld action to the JSON-LD service.
1890
-		$this->loader->add_action( 'wp_ajax_nopriv_wl_jsonld', $this->jsonld_service, 'get' );
1891
-
1892
-		// Hook the `pre_get_posts` action to the `Wordlift_Category_Taxonomy_Service`
1893
-		// in order to tweak WP's `WP_Query` to include entities in queries related
1894
-		// to categories.
1895
-		$this->loader->add_action( 'pre_get_posts', $this->category_taxonomy_service, 'pre_get_posts', 10, 1 );
1896
-
1897
-		/*
1765
+        // $this->loader->add_filter( 'plugin_action_links_wordlift/wordlift.php', $this->analytics_settings_page_action_link, 'action_links', 10, 1 );
1766
+
1767
+        // Hook the AJAX `wl_publisher` action name.
1768
+        $this->loader->add_action( 'wp_ajax_wl_publisher', $this->publisher_ajax_adapter, 'publisher' );
1769
+
1770
+        // Hook row actions for the entity type list admin.
1771
+        $this->loader->add_filter( 'wl_entity_type_row_actions', $this->entity_type_admin_page, 'wl_entity_type_row_actions', 10, 2 );
1772
+
1773
+        /** Ajax actions. */
1774
+        $this->loader->add_action( 'wp_ajax_wl_google_analytics_export', $this->google_analytics_export_service, 'export' );
1775
+
1776
+        // Hook capabilities manipulation to allow access to entity type admin
1777
+        // page  on WordPress versions before 4.7.
1778
+        global $wp_version;
1779
+        if ( version_compare( $wp_version, '4.7', '<' ) ) {
1780
+            $this->loader->add_filter( 'map_meta_cap', $this->entity_type_admin_page, 'enable_admin_access_pre_47', 10, 4 );
1781
+        }
1782
+
1783
+        $this->loader->add_action( 'wl_async_wl_run_sparql_query', $this->sparql_service, 'run_sparql_query', 10, 1 );
1784
+
1785
+        /** Adapters. */
1786
+        $this->loader->add_filter( 'mce_external_plugins', $this->tinymce_adapter, 'mce_external_plugins', 10, 1 );
1787
+        /**
1788
+         * Disabling Faq temporarily.
1789
+         * Load the tinymce editor button on the tool bar.
1790
+         * @since 3.26.0
1791
+         */
1792
+        //$this->loader->add_filter( 'tiny_mce_before_init', $this->faq_tinymce_adapter, 'register_custom_tags' );
1793
+        //$this->loader->add_filter( 'mce_buttons', $this->faq_tinymce_adapter, 'register_faq_toolbar_button', 10, 1 );
1794
+        //$this->loader->add_filter( 'mce_external_plugins', $this->faq_tinymce_adapter, 'register_faq_tinymce_plugin', 10, 1 );
1795
+
1796
+
1797
+        $this->loader->add_action( 'wp_ajax_wl_relation_rebuild_process_all', $this->relation_rebuild_adapter, 'process_all' );
1798
+        $this->loader->add_action( 'wp_ajax_wl_sample_data_create', $this->sample_data_ajax_adapter, 'create' );
1799
+        $this->loader->add_action( 'wp_ajax_wl_sample_data_delete', $this->sample_data_ajax_adapter, 'delete' );
1800
+        /**
1801
+         * @since 3.26.0
1802
+         * Post excerpt meta box would be only loaded when the language is set
1803
+         * to english
1804
+         */
1805
+        if ( apply_filters( 'wl_feature__enable__post_excerpt', true ) ) {
1806
+            $excerpt_adapter = new Post_Excerpt_Meta_Box_Adapter();
1807
+            $this->loader->add_action( 'do_meta_boxes', $excerpt_adapter, 'replace_post_excerpt_meta_box' );
1808
+            // Adding Rest route for the post excerpt
1809
+            Post_Excerpt_Rest_Controller::register_routes();
1810
+        }
1811
+
1812
+        $this->loader->add_action( 'update_user_metadata', $this->user_service, 'update_user_metadata', 10, 5 );
1813
+        $this->loader->add_action( 'delete_user_metadata', $this->user_service, 'delete_user_metadata', 10, 5 );
1814
+
1815
+        // Handle the autocomplete request.
1816
+        add_action( 'wp_ajax_wl_autocomplete', array(
1817
+            $this->autocomplete_adapter,
1818
+            'wl_autocomplete',
1819
+        ) );
1820
+        add_action( 'wp_ajax_nopriv_wl_autocomplete', array(
1821
+            $this->autocomplete_adapter,
1822
+            'wl_autocomplete',
1823
+        ) );
1824
+
1825
+        // Hooks to restrict multisite super admin from manipulating entity types.
1826
+        if ( is_multisite() ) {
1827
+            $this->loader->add_filter( 'map_meta_cap', $this->entity_type_admin_page, 'restrict_super_admin', 10, 4 );
1828
+        }
1829
+
1830
+        $deactivator_feedback = new Wordlift_Deactivator_Feedback( $this->configuration_service );
1831
+
1832
+        add_action( 'admin_footer', array( $deactivator_feedback, 'render_feedback_popup' ) );
1833
+        add_action( 'admin_enqueue_scripts', array( $deactivator_feedback, 'enqueue_popup_scripts' ) );
1834
+        add_action( 'wp_ajax_wl_deactivation_feedback', array( $deactivator_feedback, 'wl_deactivation_feedback' ) );
1835
+
1836
+        /**
1837
+         * Always allow the `wordlift/classification` block.
1838
+         *
1839
+         * @since 3.23.0
1840
+         */
1841
+        add_filter( 'allowed_block_types', function ( $value ) {
1842
+
1843
+            if ( true === $value ) {
1844
+                return $value;
1845
+            }
1846
+
1847
+            return array_merge( (array) $value, array( 'wordlift/classification' ) );
1848
+        }, PHP_INT_MAX );
1849
+    }
1850
+
1851
+    /**
1852
+     * Register all of the hooks related to the public-facing functionality
1853
+     * of the plugin.
1854
+     *
1855
+     * @since    1.0.0
1856
+     * @access   private
1857
+     */
1858
+    private function define_public_hooks() {
1859
+
1860
+        $plugin_public = new Wordlift_Public( $this->get_plugin_name(), $this->get_version() );
1861
+
1862
+        // Register the entity post type.
1863
+        $this->loader->add_action( 'init', $this->entity_post_type_service, 'register' );
1864
+
1865
+        // Bind the link generation and handling hooks to the entity link service.
1866
+        $this->loader->add_filter( 'post_type_link', $this->entity_link_service, 'post_type_link', 10, 4 );
1867
+        $this->loader->add_action( 'pre_get_posts', $this->entity_link_service, 'pre_get_posts', PHP_INT_MAX, 1 );
1868
+        $this->loader->add_filter( 'wp_unique_post_slug_is_bad_flat_slug', $this->entity_link_service, 'wp_unique_post_slug_is_bad_flat_slug', 10, 3 );
1869
+        $this->loader->add_filter( 'wp_unique_post_slug_is_bad_hierarchical_slug', $this->entity_link_service, 'wp_unique_post_slug_is_bad_hierarchical_slug', 10, 4 );
1870
+
1871
+        $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_styles' );
1872
+        $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' );
1873
+        $this->loader->add_action( 'wp_enqueue_scripts', $this->context_cards_service, 'enqueue_scripts' );
1874
+
1875
+        // Registering Faq_Content_Filter service used for removing faq question and answer tags from the html.
1876
+        $this->loader->add_filter( 'the_content', $this->faq_content_filter_service, 'remove_all_faq_question_and_answer_tags' );
1877
+        // Hook the content filter service to add entity links.
1878
+        if ( ! defined( 'WL_DISABLE_CONTENT_FILTER' ) || ! WL_DISABLE_CONTENT_FILTER ) {
1879
+            $this->loader->add_filter( 'the_content', $this->content_filter_service, 'the_content' );
1880
+        }
1881
+
1882
+        // Hook the AJAX wl_timeline action to the Timeline service.
1883
+        $this->loader->add_action( 'wp_ajax_nopriv_wl_timeline', $this->timeline_service, 'ajax_timeline' );
1884
+
1885
+        // Hook the ShareThis service.
1886
+        $this->loader->add_filter( 'the_content', $this->sharethis_service, 'the_content', 99 );
1887
+        $this->loader->add_filter( 'the_excerpt', $this->sharethis_service, 'the_excerpt', 99 );
1888
+
1889
+        // Hook the AJAX wl_jsonld action to the JSON-LD service.
1890
+        $this->loader->add_action( 'wp_ajax_nopriv_wl_jsonld', $this->jsonld_service, 'get' );
1891
+
1892
+        // Hook the `pre_get_posts` action to the `Wordlift_Category_Taxonomy_Service`
1893
+        // in order to tweak WP's `WP_Query` to include entities in queries related
1894
+        // to categories.
1895
+        $this->loader->add_action( 'pre_get_posts', $this->category_taxonomy_service, 'pre_get_posts', 10, 1 );
1896
+
1897
+        /*
1898 1898
 		 * Hook the `pre_get_posts` action to the `Wordlift_Entity_Page_Service`
1899 1899
 		 * in order to tweak WP's `WP_Query` to show event related entities in reverse
1900 1900
 		 * order of start time.
1901 1901
 		 */
1902
-		$this->loader->add_action( 'pre_get_posts', $this->entity_page_service, 'pre_get_posts', 10, 1 );
1903
-
1904
-		$this->loader->add_action( 'wl_async_wl_run_sparql_query', $this->sparql_service, 'run_sparql_query', 10, 1 );
1905
-
1906
-		// This hook have to run before the rating service, as otherwise the post might not be a proper entity when rating is done.
1907
-		$this->loader->add_action( 'save_post', $this->entity_type_adapter, 'save_post', 9, 3 );
1908
-
1909
-		// Analytics Script Frontend.
1910
-		if ( $this->configuration_service->is_analytics_enable() ) {
1911
-			$this->loader->add_action( 'wp_enqueue_scripts', $this->analytics_connect, 'enqueue_scripts', 10 );
1912
-		}
1913
-
1914
-	}
1915
-
1916
-	/**
1917
-	 * Run the loader to execute all of the hooks with WordPress.
1918
-	 *
1919
-	 * @since    1.0.0
1920
-	 */
1921
-	public function run() {
1922
-		$this->loader->run();
1923
-	}
1924
-
1925
-	/**
1926
-	 * The name of the plugin used to uniquely identify it within the context of
1927
-	 * WordPress and to define internationalization functionality.
1928
-	 *
1929
-	 * @return    string    The name of the plugin.
1930
-	 * @since     1.0.0
1931
-	 */
1932
-	public function get_plugin_name() {
1933
-		return $this->plugin_name;
1934
-	}
1935
-
1936
-	/**
1937
-	 * The reference to the class that orchestrates the hooks with the plugin.
1938
-	 *
1939
-	 * @return    Wordlift_Loader    Orchestrates the hooks of the plugin.
1940
-	 * @since     1.0.0
1941
-	 */
1942
-	public function get_loader() {
1943
-		return $this->loader;
1944
-	}
1945
-
1946
-	/**
1947
-	 * Retrieve the version number of the plugin.
1948
-	 *
1949
-	 * @return    string    The version number of the plugin.
1950
-	 * @since     1.0.0
1951
-	 */
1952
-	public function get_version() {
1953
-		return $this->version;
1954
-	}
1955
-
1956
-	/**
1957
-	 * Load dependencies for WP-CLI.
1958
-	 *
1959
-	 * @throws Exception
1960
-	 * @since 3.18.0
1961
-	 */
1962
-	private function load_cli_dependencies() {
1963
-
1964
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'cli/class-wordlift-push-reference-data-command.php';
1965
-
1966
-		$push_reference_data_command = new Wordlift_Push_Reference_Data_Command( $this->relation_service, $this->entity_service, $this->sparql_service, $this->configuration_service, $this->entity_type_service );
1967
-
1968
-		WP_CLI::add_command( 'wl references push', $push_reference_data_command );
1969
-
1970
-	}
1971
-
1972
-	/**
1973
-	 * Get the {@link \Wordlift_Dashboard_Service} to allow others to use its functions.
1974
-	 *
1975
-	 * @return \Wordlift_Dashboard_Service The {@link \Wordlift_Dashboard_Service} instance.
1976
-	 * @since 3.20.0
1977
-	 */
1978
-	public function get_dashboard_service() {
1979
-
1980
-		return $this->dashboard_service;
1981
-	}
1902
+        $this->loader->add_action( 'pre_get_posts', $this->entity_page_service, 'pre_get_posts', 10, 1 );
1903
+
1904
+        $this->loader->add_action( 'wl_async_wl_run_sparql_query', $this->sparql_service, 'run_sparql_query', 10, 1 );
1905
+
1906
+        // This hook have to run before the rating service, as otherwise the post might not be a proper entity when rating is done.
1907
+        $this->loader->add_action( 'save_post', $this->entity_type_adapter, 'save_post', 9, 3 );
1908
+
1909
+        // Analytics Script Frontend.
1910
+        if ( $this->configuration_service->is_analytics_enable() ) {
1911
+            $this->loader->add_action( 'wp_enqueue_scripts', $this->analytics_connect, 'enqueue_scripts', 10 );
1912
+        }
1913
+
1914
+    }
1915
+
1916
+    /**
1917
+     * Run the loader to execute all of the hooks with WordPress.
1918
+     *
1919
+     * @since    1.0.0
1920
+     */
1921
+    public function run() {
1922
+        $this->loader->run();
1923
+    }
1924
+
1925
+    /**
1926
+     * The name of the plugin used to uniquely identify it within the context of
1927
+     * WordPress and to define internationalization functionality.
1928
+     *
1929
+     * @return    string    The name of the plugin.
1930
+     * @since     1.0.0
1931
+     */
1932
+    public function get_plugin_name() {
1933
+        return $this->plugin_name;
1934
+    }
1935
+
1936
+    /**
1937
+     * The reference to the class that orchestrates the hooks with the plugin.
1938
+     *
1939
+     * @return    Wordlift_Loader    Orchestrates the hooks of the plugin.
1940
+     * @since     1.0.0
1941
+     */
1942
+    public function get_loader() {
1943
+        return $this->loader;
1944
+    }
1945
+
1946
+    /**
1947
+     * Retrieve the version number of the plugin.
1948
+     *
1949
+     * @return    string    The version number of the plugin.
1950
+     * @since     1.0.0
1951
+     */
1952
+    public function get_version() {
1953
+        return $this->version;
1954
+    }
1955
+
1956
+    /**
1957
+     * Load dependencies for WP-CLI.
1958
+     *
1959
+     * @throws Exception
1960
+     * @since 3.18.0
1961
+     */
1962
+    private function load_cli_dependencies() {
1963
+
1964
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'cli/class-wordlift-push-reference-data-command.php';
1965
+
1966
+        $push_reference_data_command = new Wordlift_Push_Reference_Data_Command( $this->relation_service, $this->entity_service, $this->sparql_service, $this->configuration_service, $this->entity_type_service );
1967
+
1968
+        WP_CLI::add_command( 'wl references push', $push_reference_data_command );
1969
+
1970
+    }
1971
+
1972
+    /**
1973
+     * Get the {@link \Wordlift_Dashboard_Service} to allow others to use its functions.
1974
+     *
1975
+     * @return \Wordlift_Dashboard_Service The {@link \Wordlift_Dashboard_Service} instance.
1976
+     * @since 3.20.0
1977
+     */
1978
+    public function get_dashboard_service() {
1979
+
1980
+        return $this->dashboard_service;
1981
+    }
1982 1982
 
1983 1983
 }
Please login to merge, or discard this patch.