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 | |
| /** | |
| * Custom Loop Add to Cart. | |
| * | |
| * Template with quantity and ajax. | |
| */ | |
| if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly. | |
| global $product; |
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
| function translate_string( $translated_text, $untranslated_text, $domain ) { | |
| if ( $translated_text == 'Related Products') { | |
| $translated_text = __( 'Other Great Products', 'woocommerce' ); | |
| } | |
| return $translated_text; | |
| } | |
| add_filter( 'gettext', 'translate_string', 15, 3 ); |
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
| Header set X-Robots-Tag "noindex, nofollow" |
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
| FTP Credentail: | |
| Username: lifestone-demo.motts.co | |
| Pwd: }WWb8XOX~ywI | |
| Admin Credentails: | |
| Username: admin | |
| Pwd: 123goldkist |
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
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteRule ^(.*)$ public/$1 [L] | |
| </IfModule> |
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
| //Disable PHP Execution | |
| <Files *.php> | |
| Order Allow, Deny | |
| Deny from all | |
| </Files> |
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
| <Files xmlrpc.php> | |
| Order Allow,Deny | |
| Deny from all | |
| </Files> |
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
| # Change the memory for the php run | |
| php -dmemory_limit=1G bin/magento setup:install |
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 | |
| // This will occur when the comment is posted | |
| function theme-slug_comment_post( $incoming_comment ) { | |
| // convert everything in a comment to display literally | |
| $incoming_comment['comment_content'] = htmlspecialchars($incoming_comment['comment_content']); | |
| // the one exception is single quotes, which cannot be #039; because WordPress marks it as spam | |
| $incoming_comment['comment_content'] = str_replace( "'", ''', $incoming_comment['comment_content'] ); | |
| return( $incoming_comment ); | |
| } | |
| // This will occur before a comment is displayed |
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
| vc_map( array( | |
| "name" => esc_html__("Project Counter", 'danfe'), | |
| "base" => "danfe_display_counter", | |
| "category" => esc_html__('Danfe','danfe'), | |
| "params" => array( | |
| array( | |
| 'type' => 'textfield', | |
| 'heading' => esc_html__('Title', 'danfe'), | |
| 'param_name' => 'section_title', | |
| 'value' => '', |