STATUS ÜBERPRÜFEN
I AM LISTENING TO
|

ARCHIV.

WordPress

Let’s Talk!

Suchen Sie einen zuverlässigen Partner, der Ihr Projekt auf die nächste Stufe bringt? Ob es um Entwicklung, Design, Sicherheit oder laufenden Support geht – ich würde mich gerne mit Ihnen unterhalten und sehen, wie ich Ihnen helfen kann.

Nehmen Sie Kontakt auf,
und lassen Sie uns gemeinsam etwas Erstaunliches schaffen!

When performing tasks using the Gravity Forms API, handling notifications and hook execution on demand is something that becomes really handy. <?php trait GravityForm{ function GravityForm_send_notifications($form_id, $entry_id){ // Get the array info for our forms and entries // that we need to send notifications for $form = RGFormsModel::get_form_meta($form_id); $entry = RGFormsModel::get_lead($entry_id); // Loop through all the […]

Updated 25.03. : Some function names changed in the latest beta version. IN BETA ACF 5.8 Beta introduced an easy way to create your custom Gutenberg blocks. I am already using it heavily for a current project, to easily organize content and media assets.  Really powerful, when combined with Timber as well, which has been the foundation of many […]

WordPress WooCommerce Appointments WooCommerce Appointments is a commercial  booking plugin that allows you to setup appointments with WooCommerce. It has full integration into Google calendar to track appointments of your staff. Staff availability can be set globally or via each staff members profile. While this is nice, I was looking for an option to actually […]

Visual Composer shortcodes are normally not converted within the WordPress REST API rendered output. This can be accomplished by calling WPBMap::addAllMappedShortcodes(); add_action( ‚rest_api_init‘, function () { register_rest_field( ‚page‘, ‚content‘, array( ‚get_callback‘ => ‚convert_do_shortcodes‘, ‚update_callback‘ => null, ’schema‘ => null, ) ); }); function convert_do_shortcodes( $object, $field_name, $request ) { WPBMap::addAllMappedShortcodes(); // This does all the work global […]

START SESSION ON INIT add_action(‚init‘, ‚pluginStartSession‘, 1); function pluginStartSession() { if(!session_id()) { session_start(); } } NEW SESSION ON LOGIN / LOGOUT add_action(‚wp_logout‘, ‚pluginEndSession‘); add_action(‚wp_login‘, ‚pluginEndSession‘); function pluginEndSession() { session_destroy (); } Now go ahead and use $_SESSION freely in your plugin. Here a nice additional class to  encrypt session data. Enjoy coding ….

Simple little snippet, that can easily be used in conjunction with wp_update_user() /* Generate Unique User Nicename */ function generate_unique_user_nicename( $x ) { // set up args to query $args = array( ’search‘ => sanitize_title( $x ), ’search_columns‘ => array( ‚user_nicename‘ ) ); // query for user $user_url_exists = new WP_User_Query( $args ); $results = $user_url_exists->get_results(); […]

We often have some posts that we would like to promote and keep at the first page of the blog. When you are using pagination, the sticky posts will be added to the standard posts, making the post count per page uneven. If you want to keep your posts per page count consistent, there is […]

add_action( ‚unload_textdomain‘, ‚my_unload_textdomain‘ ); function my_unload_textdomain( $domain ) { switch($domain){ case „remove_textdomain“: unload_textdomain( ‚remove_textdomain‘ ); load_plugin_textdomain( ‚remove_textdomain‘, false, $your_location.’/languages/‘ ); break } } Sometimes you might like to store all language files in your own central location, so that translators have one easy place to access all language files. Put the above into the functions.php and add […]

When building plugins or addons, sometimes we need to save custom files within WordPress. These can be custom JavaScript or CSS files that a user edited and are loaded to override core functionality. In most cases inline styles and scripts are an option, but not always the most elegant way. Everyone has to decide that for themselves. (wp_add_inline_style) Not talking about performance […]

CodePress Admin Columns allows you to manage and organize columns, for posts, users, comments and media lists in the WordPress admin panel. This little tweak allows you to add sorting to your columns. Add and adjust depending on the columns you have setup. Enjoy coding …

4 / 54