This gist was getting a lot of comments/questions, but since there are no notifications when someone replies to a gist, I've moved the setup instructions and a bunch of sample code to a dedicated Github repo.
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
<div> | |
<div class="acc-btn">Button 1</div> | |
<div class="acc-content"> | |
Content 1 | |
</div> | |
</div> | |
<div> | |
<div class="acc-btn">Button 2</div> | |
<div class="acc-content show"> | |
Content 2 |
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 | |
// meta-box-order_toplevel_page_wps_overview_page | |
// metaboxhidden_toplevel_page_wps_overview_page | |
// closedpostboxes_toplevel_page_wps_overview_page | |
// meta-box-order_toplevel_page_wps_overview_page | |
// a:2:{s:4:"side";s:127:"wps_summary_postbox,wps_browsers_postbox,wps_referring_postbox,wps_users_online_postbox,wps_countries_postbox,wps_about_postbox";s:6:"normal";s:160:"wps_hits_postbox,wps_top_visitors_postbox,wps_search_postbox,wps_searched_phrases_postbox,wps_words_postbox,wps_recent_postbox,wps_map_postbox,wps_pages_postbox";} |
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
#========================================== | |
# Exemplo de crontab para listas grandes com mais de 5 mil leads | |
# | |
# Neste exemplo damos um tempo para que | |
# cada tarefa tenha tempo de ser executada | |
# antes da próxima tarefa entrar em execução | |
#=========================================== | |
# atualiza as listas nos minutos 1 e 30 |
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 accents from url slug before WordPress search for a post | |
* | |
* When you access page with accents you will not find any posts because | |
* WordPress is removing accents from url before saving it to database. | |
* This function will remove accents from url before WordPress start looking | |
* for post. | |
* |
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 | |
/* | |
Plugin Name: PMPro Customizations | |
Plugin URI: https://www.paidmembershipspro.com/wp/pmpro-customizations/ | |
Description: Customizations for my Paid Memberships Pro Setup | |
Version: .1 | |
Author: Paid Memberships Pro | |
Author URI: https://www.paidmembershipspro.com | |
*/ |
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
/** | |
* Password reset on sub site (1 of 4) | |
* Replace login page "Lost Password?" urls. | |
* | |
* @param string $lostpassword_url The URL for retrieving a lost password. | |
* @param string $redirect The path to redirect to. | |
* | |
* @return string | |
* | |
* @since 1.0.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 | |
if (!isset($_GET['ILoveMautic'])) { | |
echo 'The secret phrase is wrong.'; | |
die; | |
} | |
$link = "https://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; | |
$allowedTasks = array( | |
'cache:clear', |
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
body.woocommerce-account .woocommerce-MyAccount-navigation ul { | |
margin: 0; | |
} | |
body.woocommerce-account .woocommerce-MyAccount-navigation ul li { | |
list-style: none; | |
} | |
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a { | |
text-decoration: none; | |
} |