Author: nawazdhandala
Tags: Docker, Storage, DevOps, Linux, Docker Daemon
Description: Learn how to relocate Docker's default data directory to an external drive to free up disk space and improve performance.
Author: nawazdhandala
Tags: Docker, Storage, DevOps, Linux, Docker Daemon
Description: Learn how to relocate Docker's default data directory to an external drive to free up disk space and improve performance.
| <?php | |
| if ( ! defined( 'ABSPATH' ) ) exit; | |
| class WordPress_Plugin_Template_Settings { | |
| private $dir; | |
| private $file; | |
| private $assets_dir; | |
| private $assets_url; | |
| private $settings_base; |
| <?php | |
| /* | |
| Plugin Name: WordPress - WP_List_Table - Custom | |
| */ | |
| add_action( 'admin_menu','register_my_custom_menu_page'); | |
| function register_my_custom_menu_page(){ | |
| global $new_menu_page; | |
| // creating admin menu |
| /** | |
| * Retrieves the translation of text. | |
| * | |
| * @see https://developer.wordpress.org/block-editor/reference-guides/packages/packages-i18n/ | |
| */ | |
| import { __ } from '@wordpress/i18n'; | |
| /** | |
| * React hook that is used to mark the block wrapper element. | |
| * It provides all the necessary props like the class name. |
| <script type="application/ld+json"> | |
| { | |
| "@context": "https://schema.org/", | |
| "@type": "Organization", | |
| "name": "Safaraz Ali", | |
| "hasOfferCatalog": { | |
| "@type": "OfferCatalog", | |
| "name": "Canny Bites Business Books", | |
| "url": "https://safaraz.co.uk/canny-bites-business-books/", | |
| "itemListElement": [ |
| <?php | |
| add_filter( 'elementor/widget/render_content', 'insert_wp_variables_in_content' ); | |
| function insert_wp_variables_in_content( $content ) { | |
| // This function replaces the placeholders like {{ post_content }} with the corresponding property values from the $post object in the $content variable. Make sure to replace {{ post_id }}, {{ post_title }}, etc., with the appropriate placeholders you want to replace in your content. | |
| // searching in content for this {{ key }} pattern | |
| $pattern = '/\{\{.*?\}\}/'; |
| :root { | |
| scroll-padding-top: 150px!important; | |
| } | |
| @media (max-width: 1024px) { | |
| :root { | |
| scroll-padding-top: 55px; | |
| } | |
| } |
| <?php | |
| /** | |
| * Change upload folder based on Elementor Form ID | |
| * | |
| * @param $path | |
| * @return string | |
| */ | |
| function zpd_change_elementor_form_upload_path_multi_form( $path ){ | |
| if( $_POST[ 'action'] === 'elementor_pro_forms_send_form'){ | |
| //The folder name |
| /* | |
| * Create new user from Elementor form | |
| */ | |
| add_action( 'elementor_pro/forms/new_record', 'gl_elementor_form_create_new_user', 99, 2 ); | |
| function gl_elementor_form_create_new_user( $record, $ajax_handler ) { | |
| $form_id = $record->get_form_settings( 'id' ); | |
| if ( 'register_form' !== $form_id ) { | |
| return; | |
| } | |