Code Snippets

Category

13 posts found

10 Jul 2018
0.1K
No Comments

I need that function to delete 10 minutes old files from my project, remove_x_minutes_old_files function required two parameters $path for directory path and $in_minutes for minutes how much old file you want to delete

Post in

29 Dec 2017
0.12K
No Comments

This function I was made specially for my theme which is running in this blog. I made function because Gravatar generate random images on each user’s avatar if user not uploaded real image, this function will not work no localhost so please use domain path eg: domain.com/wp-content/themes/mytheme/images/DefaultAvatar.jpg

Post in

29 Nov 2017
0.18K
No Comments

In Current 4.9 or preview versions we cannot get the_excerpt or get_the_excerpt by post ID so here is a little bit hack code to get excerpt paragraph of post by postID with alternate code

Post in

23 Mar 2017
72
No Comments

Post in

23 Feb 2017
0.11K
No Comments

This is happens to me and #valcatohosting allowed to use free #HTTPS #SSL  for website Other mostly #hosting companies are providing free for #SSL #wordpress websites only

Post in