This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Updated date: January 2021 | |
PRIVACY POLICY | |
This Group Privacy Policy (“Privacy Policy”) concerns BELIEVE SAS, a French company, registered with | |
the Trade and Corporate Registry of Paris under the number 481 625 853, with its main office located | |
24 rue Toulouse Lautrec 75017 PARIS ("Believe SAS") and its subsidiaries around the World, including | |
TUNECORE, hereafter collectively referred to as "Believe”, "We", or "Us". | |
This Privacy Policy describes Believe's personal data processing practices for the digital distribution of | |
music, the supply of products ("Products") and services ("Service(s)"), in general or through our | |
websites and/or other electronic communications services (widgets, mobile applications or API), | |
collectively or individually "Site(s)"). Believe SAS acts as data controller and its subsidiaries as data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"index": 0, | |
"title": "PRIVACY POLICY", | |
"name": "", | |
"content": "", | |
"type": "container", | |
"path": "000", | |
"children": [ | |
{ | |
"index": 0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Updated: 2023-08-25 15:58 CEST - fixed bugs in block recognition, improved logic. | |
*/ | |
/** | |
* Cleans a text string by normalizing line breaks, removing empty lines, and normalizing spaces. | |
* | |
* @param string $text The text string to be cleaned. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* THIS IS AN EXAMPLE OF USAGE TAKEN AND MODIFIED FROM AN EXISTING PLUGIN | |
* ----- DO NOT USE THE CODE AS IS WITHOUT THINKING AND UNDERSTANDING WHAT IT DOES ----- | |
* | |
* COMMENTS ARE ADDED TO HELP UNDERSTANDING THE APPROACH USED IN THE PLUGIN AND HOW TO WORK WITH WPSETTINGS | |
*/ | |
namespace TechSpokes\TrackHospitalitySoftware; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Cleans a text string by normalizing line breaks, removing empty lines, and normalizing spaces. | |
* | |
* @param string $text The text string to be cleaned. | |
* | |
* @return string The cleaned text string. | |
*/ | |
function clean_text( string $text ): string { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Enable WP_DEBUG mode | |
define( 'WP_DEBUG', true ); | |
// Enable Debug logging to the /wp-content/debug.log file | |
define( 'WP_DEBUG_LOG', true ); | |
// Disable display of errors and warnings | |
define( 'WP_DEBUG_DISPLAY', false ); | |
@ini_set( 'display_errors', 0 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT CONCAT( '/', `post_name`, ' -> /blog/', `post_name`, ' 301' ) FROM `wp_posts` WHERE `post_type` = 'post' AND `post_status` = 'publish' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Move Google reCAPTCHA after the comment form fields and before the submit button. | |
*/ | |
add_action( 'init', function () { | |
if ( | |
has_action( 'comment_form_logged_in_after', 'gglcptch_commentform_display' ) | |
|| has_action( 'comment_form_after_fields', 'gglcptch_commentform_display' ) | |
) { | |
remove_action( 'comment_form_logged_in_after', 'gglcptch_commentform_display' ); | |
remove_action( 'comment_form_after_fields', 'gglcptch_commentform_display' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Returns current stylesheet handle used in wp_register_style() function or NULL if not found. | |
* | |
* @return string|null | |
*/ | |
function get_current_stylesheet_handle() { | |
$pattern = sprintf( | |
'/%1$s\/style\.(min\.)?css/', |