AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE image/svg+xml AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/atom_xml
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 // only copy if needed | |
| /** | |
| * Adds new payment statuses to array of available statuses | |
| * | |
| * @param string[] $payment_statuses the core payment statuses | |
| * @param string[] updated set of statuses | |
| */ | |
| function sww_add_edd_payment_statuses( $payment_statuses ) { |
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
| // Run the function on admin_init | |
| add_action('admin_init', 'remove_profile_menu'); | |
| // Removal function | |
| function remove_profile_menu() { | |
| global $wp_roles; | |
| // Remove the menu. Syntax is `remove_submenu_page($menu_slug, $submenu_slug)` | |
| remove_submenu_page('users.php', 'profile.php'); |
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
| // Run the function on admin_init | |
| add_action('admin_init', 'remove_profile_menu'); | |
| // Removal function | |
| function remove_profile_menu() { | |
| global $wp_roles; | |
| // Remove the menu. Syntax is `remove_submenu_page($menu_slug, $submenu_slug)` | |
| remove_submenu_page('users.php', 'profile.php'); |
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 | |
| /****************************************************************************/ | |
| /* Database Configuration */ | |
| /****************************************************************************/ | |
| define('DB_NAME', 'databasename'); | |
| define('DB_USER', 'databaseuser'); | |
| define('DB_PASSWORD', 'databasepass'); | |
| define('DB_HOST', 'localhost'); | |
| define('DB_CHARSET', 'utf8'); |
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
| //Allow Contributors to Add Media | |
| function allow_contributor_uploads() { | |
| $contributor = get_role('contributor'); | |
| $contributor->add_cap('upload_files'); | |
| } | |
| if ( current_user_can('contributor') && !current_user_can('upload_files') ) { | |
| add_action('admin_init', 'allow_contributor_uploads'); | |
| } |
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 | |
| # First rewrite to HTTPS: | |
| # Don't put www. here. If it is already there it will be included, if not | |
| # the subsequent rule will catch it. | |
| RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | |
| # Now, rewrite any request to the wrong domain to use www. | |
| # [NC] is a case-insensitive match | |
| RewriteCond %{HTTP_HOST} !^www\. [NC] | |
| RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] |
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
| jQuery(window).on('load', function(){ | |
| $('#cred_user_form_21174_1').on('submit', function(event) { | |
| var data_telefone = $('[name="wpcf-telefone"]').val(); | |
| var data_celular = $('[name="wpcf-celular"]').val(); | |
| var data_cnpj = $('[name="wpcf-cnpj"]').val(); | |
| var data_ie = $('[name="wpcf-ie-rg"]').val(); | |
| var data_cep = $('[name="wpcf-cep"]').val(); |