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 | |
/** | |
* The template for displaying user profile in front_end | |
* | |
* This is the template that displays user profile in fron_end. | |
* | |
*/ | |
// Exit if accessed directly. | |
defined( 'ABSPATH' ) || exit; |
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 | |
/** | |
* Template Name: from csv to create json | |
* | |
* Template for converte csv to json. | |
* | |
* @package understrap | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) { |
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
// Set the number of posts on the page for all site queries | |
function tdm_filter_pre_get_posts( $query ) { | |
$query->set( 'posts_per_page',9 ); // 9 post per page | |
return $query; | |
} | |
add_filter( 'pre_get_posts', 'tdm_filter_pre_get_posts' ); |
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
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | |
# REDIRECT PER LA CARTELLA /web di BEDROCK # # # # # # # # # # # # # # # # # # # # # # # # # # | |
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | |
# Add directives | |
RewriteEngine on | |
# Change root directory to “web” folder | |
RewriteCond %{THE_REQUEST} ^GET\ /web/ | |
RewriteRule ^web/(.*) /$1 [L,R=301] | |
RewriteRule !^web/ web%{REQUEST_URI} [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
<-- Esempio parte in HTML --> | |
<div style="margin-top:3rem;" class="row"> | |
<label for="billing_address">(È richiesto indirizzo completo)*</label> | |
<!-- select delle province --> | |
<div class="col-md-4 "> | |
<div class="form-group"> | |
<select class="select form-control user-success" placeholder="Provincia" required="required" id="address_state"> |
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: Book Filter | |
Description: Crea uno short code per applicare i filtri alla pagina Biblioteca | |
Version: 1.0 | |
*/ | |
/* Includo js in wordpress */ | |
function enqueue_scripts(){ |
NewerOlder