I think you should already be clear that the file
functions.php of your active theme is the Pandora's box of any WordPress installation .
By including small codes in this file you can add functionalities to WordPress without having to modify files of the installation so – by the way – you avoid the installation of plugins for simple functions.
Now, once you encourage adding functions can get a little uncontrollable this file, but everything is fixed …
From a simple interface you can add new codes, edit existing functions, activate, deactivate and even delete existing functions all as if it were the plugins screen, in this case yours. In fact, you can even add functions without activating them, because they will only be executed if you "activate them", just like with the plugins.
Another great virtue is that if you change the subject you will not lose the functions , because the " snippets " are saved in the database and will be available for the new theme if you wish.
I believe that, after introducing limitations of time and songs to the free version, the online music listening service Spotify has lost some steam.
What can not be denied is that is a fantastic service to listen, discover and, above all, share music … also in WordPress .
And as Spotify uses WordPress what less than also share our music on our website made with WordPress do not you think?
To enjoy many of the virtues of Spotify in WordPress we will use some plugins and tricks that will make life easier, let's see them …
And even Here, I think I have covered all the options, but if you know any more, you tell us. Enjoy it and the music with us.
There are few occasions, sure, but if you have customized the WordPress desktop as CMS, for a client, there are times when it may be useful to avoid that you can move the meta-boxes of the desktop and that remain as you put them for your client.
To get it you just have to add a small code to your function plugin this:
You save the changes and you already have it, now you will remain still even if the user tries to move them "by grabbing" them from their title bar.
Sometimes it has happened to me, and I'm sure you, too, that you want a partner or friend to see how you're running an article that you are going to publish but … of course … it turns out that you are not a registered user of your WordPress and do not have permission to see draft entries or pending, even scheduled .
Ideally, which is what I have always wanted to do, is to be able to have a link to send it and that, not being public globally, I can share with someone so that he visualizes the post and can give me his opinion.
And, fortunately, is very simple because there is a plugin that offers exactly that. So if it is something that you intend to do usually or occasionally nothing for this functionality like Public post preview .
Once the plugin is installed you will find a new widget in the editor where you can generate, just dialing the box, a public link that, if you share it with someone, you can view the entry, even if you are not a registered user . Then, when you no longer want the link to be active, you simply uncheck the box. It's that simple.