Skip to content

Commit d76c4ee

Browse files
committed
Readme updated
1 parent fdfb210 commit d76c4ee

File tree

1 file changed

+66
-8
lines changed

1 file changed

+66
-8
lines changed

README.md

Lines changed: 66 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,53 @@
1-
# WORDPRESS SNIPPETS
2-
Snippets, links and resources for Wordpress & WooCommerce development.
3-
4-
## LINKS
1+
# WORDPRESS RESOURCES
2+
3+
Extensive list of resources for Wordpress and WooCommerce development collected during years of everyday work with those technologies. The list started as a collection of code snippets that I've been frequently using and has evolved into a small repository of various resources that will help you in your daily work with Wordpress and WooCommerce.
4+
The list is structured into three sections - links on useful resources and articles, code snippets for a wide range of scenarios you may encounter in your work and a list of trusted, non-commercial plugins that I recommend using (no page builders or similar bad plugins are listed).
5+
6+
## Table of Contents
7+
8+
- [Links](https://github.com/bojanfriscic/wordpress-snippets#links)
9+
- [Snippets](https://github.com/bojanfriscic/wordpress-snippets#snippets)
10+
11+
- [ACF](https://github.com/bojanfriscic/wordpress-snippets#acf)
12+
- [AJAX](https://github.com/bojanfriscic/wordpress-snippets#ajax)
13+
- [Assets](https://github.com/bojanfriscic/wordpress-snippets#assets)
14+
- [Blocks](https://github.com/bojanfriscic/wordpress-snippets#blocks)
15+
- [Cron](https://github.com/bojanfriscic/wordpress-snippets#cron)
16+
- [Custom Post Types](https://github.com/bojanfriscic/wordpress-snippets#custom-post-types)
17+
- [Files](https://github.com/bojanfriscic/wordpress-snippets#files)
18+
- [Images](https://github.com/bojanfriscic/wordpress-snippets#images)
19+
- [JS](https://github.com/bojanfriscic/wordpress-snippets#js)
20+
- [Navigation](https://github.com/bojanfriscic/wordpress-snippets#navigation)
21+
- [Options Pages](https://github.com/bojanfriscic/wordpress-snippets#options-pages)
22+
- [Plugins](https://github.com/bojanfriscic/wordpress-snippets#plugins)
23+
- [Posts](https://github.com/bojanfriscic/wordpress-snippets#posts)
24+
- [RSS](https://github.com/bojanfriscic/wordpress-snippets#rss)
25+
- [Security](https://github.com/bojanfriscic/wordpress-snippets#security)
26+
- [Setup](https://github.com/bojanfriscic/wordpress-snippets#setup)
27+
- [Shortcodes](https://github.com/bojanfriscic/wordpress-snippets#shortcodes)
28+
- [Soacial](https://github.com/bojanfriscic/wordpress-snippets#social)
29+
- [SQL](https://github.com/bojanfriscic/wordpress-snippets#sql)
30+
- [Templates](https://github.com/bojanfriscic/wordpress-snippets#templates)
31+
- [Terms](https://github.com/bojanfriscic/wordpress-snippets#terms)
32+
- [Tweaks](https://github.com/bojanfriscic/wordpress-snippets#tweaks)
33+
- [WP Query](https://github.com/bojanfriscic/wordpress-snippets#wp-query)
34+
- [WPDB](https://github.com/bojanfriscic/wordpress-snippets#wpdb)
35+
- [WooCommerce](https://github.com/bojanfriscic/wordpress-snippets#woocommerce)
36+
37+
- [Trusted Plugins](https://github.com/bojanfriscic/wordpress-snippets#snippets)
38+
39+
---
40+
41+
## Links
542

643
- [A List of all Default Gutenberg Blocks in WordPress 5.0](https://wpdevelopment.courses/a-list-of-all-default-gutenberg-blocks-in-wordpress-5-0/)
744
- [Codex](http://codex.wordpress.org/)
845
- [Dashicons](https://developer.wordpress.org/resource/dashicons/)
946
- [Plugins](https://wordpress.org/plugins/)
1047

11-
## SNIPPETS
48+
---
49+
50+
## Snippets
1251

1352
### ACF
1453

@@ -19,18 +58,22 @@ Snippets, links and resources for Wordpress & WooCommerce development.
1958
- [Post Object](https://github.com/bojanfriscic/wordpress-snippets/blob/master/ACF/post_object.php)
2059

2160
### AJAX
61+
2262
- [functions.php](https://github.com/bojanfriscic/wordpress-snippets/blob/master/AJAX/functions.php)
2363
- [weather.js](https://github.com/bojanfriscic/wordpress-snippets/blob/master/AJAX/weather.js)
2464

2565
### Assets
66+
2667
- [Register Image Sizes](https://github.com/bojanfriscic/wordpress-snippets/blob/master/Assets/register-image-sizes.php)
2768
- [Register Script](https://github.com/bojanfriscic/wordpress-snippets/blob/master/Assets/register-script.php)
2869
- [Register Style](https://github.com/bojanfriscic/wordpress-snippets/blob/master/Assets/register-style.php)
2970

3071
### Blocks
72+
3173
- [Display Reusable Block in Theme](https://github.com/bojanfriscic/wordpress-snippets/blob/master/Blocks/display_reusable_block_in_theme.php)
3274

3375
### Cron
76+
3477
- [Simple Cron Job](https://github.com/bojanfriscic/wordpress-snippets/blob/master/Cron/add_simple_cron_job.php)
3578
- [Add Custom Scheduling](https://github.com/bojanfriscic/wordpress-snippets/blob/master/Cron/add_custom_schedulling.php)
3679
- [Unschedule Cron Job](https://github.com/bojanfriscic/wordpress-snippets/blob/master/Cron/unschedule_cron_job.php)
@@ -46,10 +89,12 @@ Snippets, links and resources for Wordpress & WooCommerce development.
4689
- [Allow .svg Upload](https://github.com/bojanfriscic/wordpress-snippets/blob/master/Files/allow-svg-upload.php)
4790

4891
### Images
92+
4993
- [Enable post thumbnails](https://github.com/bojanfriscic/wordpress-snippets/blob/master/Images/enable-post-thumbnails.php)
5094
- [Thumbnail outside of Loop](https://github.com/bojanfriscic/wordpress-snippets/blob/master/Images/thumbnail-outside-of-loop.php)
5195

5296
### JS
97+
5398
- [reCaptcha Dark Mode](https://github.com/bojanfriscic/wordpress-snippets/blob/master/JS/recaptcha-dark-mode.js)
5499

55100
### Navigation
@@ -73,6 +118,7 @@ Snippets, links and resources for Wordpress & WooCommerce development.
73118
- [Change Excerpt More](https://github.com/bojanfriscic/wordpress-snippets/blob/master/Posts/change-excerpt-more.php)
74119

75120
### RSS
121+
76122
- [Custom RSS Footer](https://github.com/bojanfriscic/wordpress-snippets/blob/master/RSS/custom-rss-footer.php)
77123
- [Delay Posts](https://github.com/bojanfriscic/wordpress-snippets/blob/master/RSS/delay-posts.php)
78124
- [Exclude Categories](https://github.com/bojanfriscic/wordpress-snippets/blob/master/RSS/exclude-categories.php)
@@ -102,17 +148,20 @@ Snippets, links and resources for Wordpress & WooCommerce development.
102148
- [Shortcode with Attributes](https://github.com/bojanfriscic/wordpress-snippets/blob/master/Shortcodes/shortcode-with-atts.php)
103149
- [Shortcode with Content](https://github.com/bojanfriscic/wordpress-snippets/blob/master/Shortcodes/shortcode-with-content.php)
104150

105-
### Social
151+
### Social
106152

107153
- [Sharing Button](https://github.com/bojanfriscic/wordpress-snippets/blob/master/Social/sharing-button.php)
108154

109155
### SQL
156+
110157
- [Truncate Comments](https://github.com/bojanfriscic/wordpress-snippets/blob/master/SQL/truncate-comments.sql)
111158

112159
### Templates
160+
113161
- [Check if template](https://github.com/bojanfriscic/wordpress-snippets/blob/master/Templates/check-if-template.php)
114162

115163
### Terms
164+
116165
- [Insert term](https://github.com/bojanfriscic/wordpress-snippets/blob/master/Terms/insert-term.php)
117166

118167
### Tweaks
@@ -124,7 +173,12 @@ Snippets, links and resources for Wordpress & WooCommerce development.
124173
- [Remove Editor from Template](https://github.com/bojanfriscic/wordpress-snippets/blob/master/Tweaks/remove-editor-from-templates.php)
125174
- [Remove Welcome Panel](https://github.com/bojanfriscic/wordpress-snippets/blob/master/Tweaks/remove-welcome-panel.php)
126175

176+
### Users
177+
178+
- [Restrict Access to Post Type](https://github.com/bojanfriscic/wordpress-snippets/blob/master/Users/restrict-access-to-post-type.php)
179+
127180
### WP Query
181+
128182
- [Loop through Taxonomies](https://github.com/bojanfriscic/wordpress-snippets/blob/master/WP%20Query/loop-through-taxonomies.php)
129183
- [Meta Query](https://github.com/bojanfriscic/wordpress-snippets/blob/master/WP%20Query/meta-query.php)
130184
- [Order by Meta Value](https://github.com/bojanfriscic/wordpress-snippets/blob/master/WP%20Query/order-by-meta-value.php)
@@ -155,7 +209,9 @@ Snippets, links and resources for Wordpress & WooCommerce development.
155209
- [Set default ordering](https://github.com/bojanfriscic/wordpress-snippets/blob/master/Woocommerce/set-default-ordering.php)
156210
- [Unset ordering types](https://github.com/bojanfriscic/wordpress-snippets/blob/master/Woocommerce/unset-ordering-types.php)
157211

158-
## TRUSTED PLUGINS
212+
---
213+
214+
## Trusted plugins
159215

160216
- [Advanced Custom Fields PRO](https://www.advancedcustomfields.com/pro/)
161217
- [Classic Editor](https://wordpress.org/plugins/classic-editor/)
@@ -165,4 +221,6 @@ Snippets, links and resources for Wordpress & WooCommerce development.
165221
- [WP Smart Preloader](https://wordpress.org/plugins/wp-smart-preloader/)
166222
- [WP Super Cache](https://wordpress.org/plugins/wp-super-cache/)
167223
- [WPForms Lite](https://wordpress.org/plugins/wpforms-lite/)
168-
- [YOAST SEO](https://wordpress.org/plugins/wordpress-seo/)
224+
- [YOAST SEO](https://wordpress.org/plugins/wordpress-seo/)
225+
226+
---

0 commit comments

Comments
 (0)