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 | |
add_filter('seopress_schemas_mapping_select', 'sp_schemas_mapping_select'); | |
function sp_schemas_mapping_select($select) { | |
// Add the new group option + option to the list | |
$select['Custom variables'] = [ | |
'my_custom_var_key' => __('My super custom var', 'wp-seopress-pro'), | |
'my_repeater_field' => __('ACF Repeater Field', 'wp-seopress-pro'), | |
]; | |
// Get the ACF repeater field 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
<?php | |
// remove API access | |
// https://developer.wordpress.org/rest-api/using-the-rest-api/frequently-asked-questions/ | |
add_filter( 'rest_authentication_errors', function( $result ) { | |
if ( ! empty( $result ) ) { | |
return $result; | |
} | |
if ( ! is_user_logged_in() ) { | |
return new WP_Error( 'rest_not_logged_in', 'You are not currently logged in.', array( 'status' => 401 ) ); |
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
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
RewriteCond %{REQUEST_URI} ^(.*)?wp-login\.php(.*)$ [OR] | |
RewriteCond %{REQUEST_URI} ^(.*)?wp-admin$ | |
RewriteCond %{REMOTE_ADDR} !^10\.110\.20\.220$ | |
RewriteCond %{REMOTE_ADDR} !^20\.220\.30\.330$ | |
RewriteRule ^(.*)$ - [R=403,L] | |
</IfModule> |
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 | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; // Exit if accessed directly. | |
} | |
function chut_search_filter( $query ) { | |
if ( ! $query->is_admin && $query->is_search && $query->is_main_query() ) { | |
$query->set( 'post__not_in', array( 1,10,110 ) ); | |
} |
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 | |
// securiser l'accès au fichier | |
if ( ! defined( 'ABSPATH' ) ) exit; | |
// Chargement TAC | |
add_action( 'wp_enqueue_scripts', 'webplus_tac_load' ); | |
function webplus_tac_load() { | |
wp_enqueue_script( 'tarteaucitron', 'https://cdn.jsdelivr.net/gh/AmauriC/tarteaucitron.js@1.3/tarteaucitron.min.js' ); |
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
<script> | |
var et_site_url = 'http://webhostingdivi.site'; | |
var et_post_id = '193'; | |
function et_core_page_resource_fallback(a, b) { | |
"undefined" === typeof b && (b = a.sheet.cssRules && 0 === a.sheet.cssRules.length); | |
b && (a.onerror = null, a.onload = null, a.href ? a.href = et_site_url + "/?et_core_page_resource=" + a.id + et_post_id : a.src && (a.src = et_site_url + "/?et_core_page_resource=" + a.id + et_post_id)) | |
} | |
</script> | |
<title>Divi hosting home | Premium Divi Web Hosting</title> |
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 | |
/** | |
* @snippet Conditional plugin load. | |
* @author Agence WebPlus | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; // Exit if accessed directly. | |
} |
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
### Begin Custom Post Type UI Debug Info ### | |
Multisite: No | |
SITE_URL: https://xxx.tld | |
HOME_URL: https://xxx.tld | |
WordPress Version: 5.4 | |
Permalink Structure: /index.php/%year%/%monthnum%/%day%/%postname%/ |
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
<a class="ppyt" href="https://www.youtube.com/watch?v=s1T9bWKJW_g"> | |
<img src="http://webplus.odns.fr/wp-content/uploads/2018/02/video-overlay.jpg" width="800" height="534" alt="" class="" /> | |
</a> |
NewerOlder