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 | |
| /** | |
| * Customize docs permalinks parsing. | |
| * | |
| * @author Vova Feldman | |
| */ | |
| function freemius_docs_permastruct_rewrite() { | |
| if ( post_type_exists( 'docs' ) ) { | |
| // Modify root slug to "help" instead of docs. |
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 search | |
| .page-header | |
| { | |
| .wedocs-search-form | |
| { | |
| position: relative; | |
| input | |
| { | |
| @include placeholder(#999); |
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 | |
| function limit_upload_size_limit_for_non_admin( $limit ) { | |
| if ( ! current_user_can( 'manage_options' ) ) { | |
| $limit = 1000000; // 1mb in bytes | |
| } | |
| return $limit; | |
| } | |
| add_filter( 'upload_size_limit', 'limit_upload_size_limit_for_non_admin' ); |
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
| #stop directory browsing | |
| Options All -Indexes | |
| # SSL Https active Force non-www | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine on | |
| RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] | |
| RewriteRule ^(.*)$ https://%1/$1 [R=301,L] | |
| RewriteCond %{HTTPS} !=on | |
| RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L] |
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 | |
| add_action( 'wp_enqueue_scripts', function() { | |
| if ( ! dokan_is_store_page() ) { | |
| return; | |
| } | |
| wp_enqueue_style('dokan-magnific-popup'); | |
| wp_enqueue_script('dokan-popup'); | |
| } ); |
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 | |
| /** | |
| * Register ajax action hook. | |
| * | |
| * When you have lots of ajax actions in your theme or plugin then | |
| * this utility function is going to be quite handy! | |
| * By default all actions are for logged in users. | |
| * | |
| * Usage: | |
| * add_ajax( 'get_infinity_posts', 'prefix_get_infinity_posts' ); // for logged in only |
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 | |
| /** | |
| * Change text strings | |
| * | |
| * @link http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext | |
| */ | |
| function my_text_strings( $translated_text, $text, $domain ) { | |
| switch ( $translated_text ) { | |
| case 'Sale!' : | |
| $translated_text = __( 'Clearance!', 'woocommerce' ); |
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
| User Testing / Usability / Data Analytics | |
| --------------------------------------------------------------------------- | |
| https://lookback.io/ | |
| https://usabilityhub.com/ | |
| https://www.hotjar.com/ | |
| https://www.smartlook.com/ | |
| https://www.usertesting.com/ | |
| https://www.inspectlet.com/ | |
| https://recorder.userlook.co/ | |
| https://userlook.co/ |
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
| 10 Stunning Button Hover Effects for Gutenberg Button Block | |
| https://gutenberghub.com/10-stunning-button-hover-effects-for-gutenberg-button-block/ | |
| How to use Background Patterns in Gutenberg using CSS only | |
| https://gutenberghub.com/how-to-use-background-patterns-in-gutenberg-using-css-only/ | |
| How to create a visual sitemap in Gutenberg without any plugin | |
| https://gutenberghub.com/how-to-create-a-visual-sitemap-in-gutenberg-without-any-plugin/ | |
| WordPress Block Development Made Easy |
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 namespace GM\WWWPostThumbnail; | |
| /** | |
| * Plugin Name: WWW Post Thumbnail | |
| * Description: Allow to use an external image url as featured image. | |
| * Plugin URI: https://gist.github.com/Giuseppe-Mazzapica/928bc22e5f49a654cf7c | |
| * Author: Giuseppe Mazzapica | |
| * Author URI: https://github.com/Giuseppe-Mazzapica | |
| * License: MIT | |
| * Version: 0.1.0 | |
| * |