I like to use the WordPress native methods when I can, here’s my take on oAuth. The examples below retrieves the access token
An alternative “Hide ACF Menu from Clients”
Here’s an alternative to Hide ACF Menu from Clients, add it to your functions.php:
|
1 2 3 4 5 |
add_action( 'admin_menu', function() { if (! current_user_can('administrator')) { remove_menu_page('edit.php?post_type=acf'); } }); |
Note, remove_menu_page() needs WordPress 3.1 or newer
Date and Time Picker field for Advanced Custom Fields
This is an add-on for the Advanced Custom Fields (ACF) WordPress plugin, that allows you to add a Date and Time Picker field type. Works with ACF v3 and v4. Continue reading
Adding WP-PageNavi to the Yoko theme
I’m using the Yoko theme and WP-PageNavi here at soderlind.no
Yoko is a modern three-column blog theme. A responsive layout optimizes the theme for mobile devices like tablet pcs and modern smartphones (the layout switches to a two- or one-column layout depending on the screen size the theme is viewed on).
WordPress plugin: Remove “Comments are closed”

On posts where comments are closed, the plugin will remove the text ‘Comments are closed.’ The plugin supports any languages/text domains, and will remove the text from themes and plugins.
Prerequisite: Since the plugin is filtering gettext, your theme/plugin must be localized.
The plugin is available in the WordPress plugin directory