-
Notifications
You must be signed in to change notification settings - Fork 0
/
Tipps
89 lines (63 loc) · 3.16 KB
/
Tipps
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
Random Picture:
https://wp-time.com/wordpress-random-image/
Examples:
wp-env logs --no-watch Displays the latest logs for the e2e
--environment=tests test environment without watching.
wp-env run cli wp user list Runs `wp user list` wp-cli command
which lists WordPress users.
wp-env run cli wp shell Open the interactive WordPress shell
for the development instance.
wp-env run tests-cli bash Open a bash session in the WordPress
tests instance.
Lesson Plan for Custom Post Types!
https://learn.wordpress.org/lesson-plan/custom-post-types/
wp-env run cli db check
wp-env run cli db query < selectPosts.sql
(see here: https://developer.wordpress.org/block-editor/reference-guides/packages/packages-env/)
(potentielle) Aktivierung des Debug-Modus in der wp-env.json Datei:
https://make.wordpress.org/core/2020/03/03/wp-env-simple-local-environments-for-wordpress/
Recht gute Seite, um den Einstieg zu bekommen:
https://wpmudev.com/blog/creating-database-tables-for-plugins/
https://wpmudev.com/blog/activate-deactivate-uninstall-hooks/
Infos zum Full Site Editor:
https://gutenbergtimes.com/block-template-for-custom-post-type-weekend-edition-198/
Könnte auch hilfreich sein:
https://codex.wordpress.org/Main_Page
Post-Type Dokumentation
https://pixelwerker.de/wordpress-custom-post-type/
eigene Attribute für den Custom Post Type definieren, speichern und wieder abfragen:
https://metabox.io/how-to-create-custom-meta-boxes-custom-fields-in-wordpress/
WORKING AJAX EXAMPLE!!!
https://www.smashingmagazine.com/2011/10/how-to-use-ajax-in-wordpress/
AJAX Introduction:
https://www.cloudways.com/blog/wordpress-ajax/
probably a bit better/more useful:
https://www.sitepoint.com/how-to-use-ajax-in-wordpress-a-real-world-example/
Oder eher hier:
https://codex.wordpress.org/AJAX_in_Plugins
better this one?
https://www.jackreichert.com/2013/03/using-ajax-in-wordpress-development-the-quickstart-guide/
very basic:
https://odd.blog/2008/11/01/make-your-wordpress-plugin-talk-ajax/
Users: 1, 2
Events: 6,38,41
Bikes: 25,40,59
BUE Structure:
id, bikeid, userid, eventid, points
// USER_Extend Structure:
// id, test (bool), userid
SQL Join Explanations:
https://mattmazur.com/2017/11/01/counting-in-mysql-when-joins-are-involved/
wordpress.wp_Link_Bike_User_Event OK
wordpress.wp_commentmeta OK
wordpress.wp_comments OK
wordpress.wp_links OK
wordpress.wp_options OK
wordpress.wp_postmeta OK
wordpress.wp_posts OK
wordpress.wp_term_relationships OK
wordpress.wp_term_taxonomy OK
wordpress.wp_termmeta OK
wordpress.wp_terms OK
wordpress.wp_usermeta OK
wordpress.wp_users OK