Тёмный

Wordpress Code Snippets Tutorial - 2 Ways to Add PHP to WordPress 

SmartWP WordPress Tutorials
Подписаться 3 тыс.
Просмотров 9 тыс.
50% 1

If you're customizing your WordPress site you've seen tutorials that ask you to add code snippets to your functions.php file. In today's video I'll show you two methods to adding code snippets to your WordPress site.
Code Snippets Plugin - wordpress.org/plugins/code-sn...
Code Snippet Ideas for WordPress - smartwp.com/code-snippets-for...
0:00 - Intro
0:40 - Using Code Snippets plugin
2:50 - Editing functions.php in a Child Theme
5:41 - Outro
Subscribe to SmartWP for more free WordPress tutorials and guides. geni.us/WPsubscribe
More WordPress tips on smartwp.com/
#WordPress

Наука

Опубликовано:

 

25 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 18   
@Katubug
@Katubug 7 месяцев назад
This was exactly what I needed, thank you!
@KubaD-xq6qm
@KubaD-xq6qm Год назад
Thanks for the great tutorial. Perfect balance between being clear and being precise.
@SmartWP
@SmartWP Год назад
Glad it was helpful!
@ernestromen1479
@ernestromen1479 2 года назад
short and sweet and straight to the point, thanks man!
@n-o-i-d
@n-o-i-d 2 года назад
First impression: Outstanding video quality!
@SmartWP
@SmartWP 2 года назад
Glad you liked it!
@solflorhair
@solflorhair 3 года назад
This video is really helpful
@jakemason433
@jakemason433 2 года назад
Great vid
@mmkil8299
@mmkil8299 2 года назад
can i ask you something companies use in work php oop mvc i mean native php or i use framework like laravel when i work in company or use wordpress or all
@NoisyBoyMotoAdventures
@NoisyBoyMotoAdventures Год назад
is there a way to add file converter if i have the codes using same method...Please make some video like PDF to word converter.
@shreyayadav8426
@shreyayadav8426 3 года назад
I made a news website using WordPress today and I want to connect it to my database. I want to fetch image name, image, news heading, and the actual news from the database. I have it all in my phpmyadmin database, but I don't know how to connect it and fetch the data from the database. And also how to import my images folder in WordPress. Please help me on this
@unseen.afghanistan
@unseen.afghanistan 3 года назад
An error occurred when saving the snippet - getting this error
@SmartWP
@SmartWP 3 года назад
Which snippet? most likely a php error, check your syntax
@unseen.afghanistan
@unseen.afghanistan 3 года назад
@@SmartWP the following snippet: add_filter('woocommerce_valid_order_statuses_for_payment', 'allow_payment_of_cancelled_orders'); function allow_payment_of_cancelled_orders($valid_statuses) { $valid_statuses[] = 'cancelled'; return $valid_statuses; }
@SmartWP
@SmartWP 3 года назад
@@unseen.afghanistan Only thing I can think of is that the function is already defined, if you post the error I can help more. I would rename where it says allow_payment_of_cancelled_orders to israr_allow_payment_of_cancelled_orders
@unseen.afghanistan
@unseen.afghanistan 3 года назад
@@SmartWP the error is only this “ An error occurred when saving the snippet” and nothing has been saved after saving the snippet there . No other error showing
@unseen.afghanistan
@unseen.afghanistan 3 года назад
@@SmartWP renamed the function still the same error.
Далее
WordPress - Functions
6:05
Просмотров 4,1 тыс.
Вечный ДВИГАТЕЛЬ!⚙️ #shorts
00:27
Просмотров 1,3 млн
How to Redirect URLs in WordPress (Step-by-Step)
6:09
The Biggest Mistake Beginners Make When Web Scraping
10:21
Add PHP Code in Wordpress Properly without plugins [07]
19:44
How to Edit WordPress Code (HTML, CSS, PHP, JavaScript)
10:03
iPhone 16 - КРУТЕЙШИЕ ИННОВАЦИИ
4:50
#miniphone
0:16
Просмотров 3,5 млн