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 onOpen(e) { | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
ss.addMenu("Меню для Оли", | |
[{ name: "Write to file", functionName: "writeToFile" }, | |
{ name: "Remove Duplicates", functionName: "removeDuplicates" }, | |
{ name: "Count lids", functionName: "countLids" }] | |
); | |
} | |
/** |
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
add_action('admin_menu', function(){ | |
add_menu_page( 'Myway | Помощь', 'Помощь', 'edit_pages', 'help', 'add_help_page', 'dashicons-editor-help', 4 ); | |
} ); | |
function add_help_page() { | |
include 'helpix.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
//add styles only on one page of admin area Wordpress | |
add_action( 'admin_enqueue_scripts', 'add_css_help_page' ); | |
function add_css_help_page( $hook ){ | |
//wp_die($hook); | |
// output help.css only on help page in admin zone | |
if($hook != 'toplevel_page_help') { | |
return; | |
} | |
wp_enqueue_style( 'css-help-admin', get_template_directory_uri() .'/help.css' ); | |
} |
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
//убираем количество в категориях | |
add_filter('woocommerce_subcategory_count_html','remove_count'); | |
function remove_count(){ | |
$html=''; | |
return $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
# last working way - http to https | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{SERVER_PORT} !^443$ | |
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L] | |
</IfModule> | |
# force HTTPS and www. | |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} (?!^www\.)^(.+)$ [OR] |
NewerOlder