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_my_query_var( $link, $query ) { | |
$utm_source = $_GET['utm_source']; //get sort value | |
if ( isset($utm_source) ) { //if browsing posts by votes | |
$link = add_query_arg( 'utm_source', $utm_source, $link ); | |
} | |
$utm_medium = $_GET['utm_medium']; //get sort value | |
if ( isset($utm_medium) ) { //if browsing posts by votes | |
$link = add_query_arg( 'utm_medium', $utm_medium, $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
<!-- Versão Estado e UF para Contact Form 7 --> | |
[select* estado first_as_label "Selecione o estado" "Acre (AC)" "Alagoas (AL)" "Amapá (AP)" "Amazonas (AM)" "Bahia (BA)" "Ceará (CE)" "Distrito Federal (DF)" "Espírito Santo (ES)" "Goiás (GO)" "Maranhão (MA)" "Mato Grosso (MT)" "Mato Grosso do Sul (MS)" "Minas Gerais (MG)" "Pará (PA) " "Paraíba (PB)" "Paraná (PR)" "Pernambuco (PE)" "Piauí (PI)" "Rio de Janeiro (RJ)" "Rio Grande do Norte (RN)" "Rio Grande do Sul (RS)" "Rondônia (RO)" "Roraima (RR)" "Santa Catarina (SC)" "São Paulo (SP)" "Sergipe (SE)" "Tocantins (TO)"] | |
<!-- Versão somente UF para Contact Form 7 --> | |
[select* estado first_as_label "Selecione o estado" "AC" "AL" "AP" "AM" "BA" "CE" "DF" "ES" "GO" "MA" "MT" "MS" "MG" "PA" "PB" "PR" "PE" "PI" "RJ" "RN" "RS" "RO" "RR" "SC" "SP" "SE " "TO"] | |
<!-- Versãoe Estado e UF para HTML --> | |
<select id="estado" name="estado"> | |
<option value="Selecione seu estado" selected disabled>Selecione seu estado</option> | |
<option value="Acre (AC)">Acre (AC)</option> |
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 | |
/** | |
* Register New custom automatic push notification. | |
*/ | |
namespace BuddyBossApp\Custom; | |
use BuddyBossApp\Jobs; | |
use BuddyBossApp\Notification\IntegrationAbstract; | |
/** |
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 | |
require_once 'ActivityPublishNotification.php'; | |
use BuddyBossApp\Jobs; | |
use BuddyBossApp\Notification\IntegrationAbstract; | |
add_action('bp_activity_after_save', 'where_activity_from', 10, 3); | |
function where_activity_from( $activity ) { | |
// print_r($activity->content); | |
$users = get_users( array( | |
'fields' => 'ids', | |
'number' => 200, |
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
######################################################################## | |
# OPTIMAL .htaccess FILE FOR SPEED AND SECURITY @Version 2019 | |
# ---------------------------------------------------------------------- | |
# @Author: Andreas Hecht | |
# @Author URI: https://andreas-hecht.com | |
# License: GNU General Public License v2 or later | |
# License URI: http://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
sudo chown -R hofbraubh:nogroup /var/www/ |
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
sudo chown -R www-data:www-data /var/www/folder |
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
ALTER TABLE $table CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci |
NewerOlder