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
/* Responsive Styles Large Desktop And Above */ | |
@media all and (min-width: 1405px) { | |
} | |
/* Responsive Styles Standard Desktop Only */ | |
@media all and (min-width: 1100px) and (max-width: 1405px) { | |
} |
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
SELECT * FROM wp_posts | |
LEFT JOIN wp_term_relationships ON | |
(wp_posts.ID = wp_term_relationships.object_id) | |
LEFT JOIN wp_term_taxonomy ON | |
(wp_term_relationships.term_taxonomy_id = wp_term_taxonomy.term_taxonomy_id) | |
WHERE wp_posts.post_type = 'post' | |
AND wp_term_taxonomy.taxonomy = 'category' | |
AND wp_term_taxonomy.term_id = 48 | |
ORDER BY post_date DESC |
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 | |
// Check for a referer and if so send mail | |
if (isset($_SERVER["HTTP_REFERER"])){ | |
$sitename = "My Website"; | |
// Mail Settings | |
$mailer = JFactory::getMailer(); | |
// Set sender as site default | |
$config = JFactory::getConfig(); | |
$sender = array( | |
$config->get('config.mailfrom'), |
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 YOURPREFIX_remove_wc_account_page_noindex(){ | |
if (!is_user_logged_in()) { | |
remove_action( 'wp_head', 'wc_page_noindex' ); | |
} | |
} | |
add_action( 'init', 'YOURPREFIX_remove_wc_account_page_noindex' ); |
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 | |
echo $_SERVER['DOCUMENT_ROOT']; | |
?> |
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 | |
$to = "[email protected]"; | |
$subject = "Hi!"; | |
$body = "Hi,\n\nHow are you?"; | |
if (mail($to, $subject, $body)) { | |
echo("<p>Email successfully sent!</p>"); | |
} else { | |
echo("<p>Email delivery failed!</p>"); | |
} | |
?> |
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 | |
//define( 'WP_DEBUG', false ); | |
define( 'WP_DEBUG', true ); | |
define( 'WP_DEBUG_LOG', true ); | |
define( 'WP_DEBUG_DISPLAY', false ); | |
@ini_set( 'display_errors', 0 ); |
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 WpUltimateRecipeGutenbergEditorLoaded() { | |
return ( wp.data !== undefined && wp.data.select( 'core/editor' ) !== undefined ); | |
} | |
// TODO WordPress 5.0 Gutenberg fix. Get rid once fixed in core. | |
if (WpUltimateRecipeGutenbergEditorLoaded() && window.tinymce) { | |
wp.data.subscribe(function () { | |
// the post is currently being saved && we have tinymce editors | |
if (wp.data.select( 'core/editor' ).isSavingPost() && window.tinymce.editors) { | |
for (var i = 0; i < tinymce.editors.length; i++) { |
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
<Proxy *> | |
Order deny,allow | |
Allow from all | |
</Proxy> | |
SSLProxyEngine On | |
ProxyRequests On | |
ProxyPreserveHost On | |
ProxyPass /stats ! | |
ProxyPass / https://127.0.0.1:8080/ |
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
# Redirects /index.php?option=com_content&task=view&id=59&Itemid=69 | |
RewriteCond %{QUERY_STRING} ^option=com_content&task=view&id=59&Itemid=69$ | |
RewriteRule ^index\.php?$ https://domain.com/page? [R=301,L] |