This file contains hidden or 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
<label> Your Name (required) | |
[text* your-name] </label> | |
<label> Your Email (required) | |
[email* your-email] </label> | |
<label> Your Phone (required) | |
[tel* your-phone] </label> | |
<label> Subject |
This file contains hidden or 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 | |
define('SP_REQUEST_URL', ($_SERVER['HTTPS'] ? 'https://' : 'http://') . $_SERVER['HTTP_HOST']); | |
define('WP_SITEURL', SP_REQUEST_URL); | |
define('WP_HOME', SP_REQUEST_URL); |
This file contains hidden or 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
# Use UTF-8 encoding for anything served text/plain or text/html | |
AddDefaultCharset UTF-8 | |
# Force UTF-8 for a number of file formats | |
<IfModule mod_mime.c> | |
AddCharset UTF-8 .atom .css .js .json .rss .vtt .xml | |
</IfModule> | |
# FileETag None is not enough for every server. | |
<IfModule mod_headers.c> | |
Header unset ETag |
This file contains hidden or 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 | |
function change_end_points_default_values($endpoints){ | |
/** | |
* Posts EndPoint | |
* print_r($endpoints['/wp/v2/posts']); | |
* | |
* Argumentos Originales | |
* | |
* Array |
This file contains hidden or 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 | |
/** | |
* Elementor get the local templates via a CPT query and use a filter to let us change the template data | |
* https://github.com/pojome/elementor/blob/master/includes/template-library/sources/local.php#L202 | |
* In ouy theme or plugin we can hook that filter as follow | |
* | |
* This filter change the source only for the *page* template type to show it in the main tab | |
* @see https://cl.ly/1z2Y1n2x0K0F | |
**/ |
This file contains hidden or 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 | |
protected function _register_controls() { | |
/** | |
* Start a control section. | |
*/ | |
$this->start_controls_section( | |
'section-ine-tabs', | |
[ 'label' => __( 'INE Tabs', 'sage' ), ] | |
); |
This file contains hidden or 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
RewriteEngine on | |
RewriteCond %{HTTPS} off | |
RewriteCond %{HTTP_HOST} !^(www.)?domain.com$ [NC] | |
RewriteRule . http://domain.com%{REQUEST_URI} [R=301,L] | |
RewriteCond %{HTTPS} on | |
RewriteCond %{HTTP_HOST} !^(www.)?domain.com$ [NC] | |
RewriteRule . https://domain.com%{REQUEST_URI} [R=301,L] |
This file contains hidden or 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 | |
function add_nofollow( $content ) { | |
$re = '/<a(.*)>/iU'; | |
preg_match_all( $re, $content, $matches ); | |
$domain = get_bloginfo( 'url' ); | |
foreach ( $matches[0] as $link ) { | |
if ( strpos( $link, $domain ) === false ) { | |
if ( strpos( $link, 'nofollow' ) === false ) { | |
$new_link = str_replace( '>', ' rel="nofollow">', $link ); |
This file contains hidden or 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 | |
/* | |
Plugin Name: WordPress.org Plugin | |
Plugin URI: https://developer.wordpress.org/plugins/the-basics/ | |
Description: Basic WordPress Plugin Header Comment | |
Version: 20160911 | |
Author: WordPress.org | |
Author URI: https://developer.wordpress.org/ | |
License: GPL2 | |
License URI: https://www.gnu.org/licenses/gpl-2.0.html |
This file contains hidden or 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
{ | |
"version": 1.0, | |
"name": "podcast", | |
"primary_color": "", | |
"accent_color": "#0000ff", | |
"text_color": "", | |
"showFeedback": true, | |
"header": { | |
"header_img": "", | |
"title": "Understanding Active Problems", |