This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Disable Comments (Must Use version) | |
* Description: Disables all WordPress comment functionality on the entire network. | |
* Version: 1.1.2 (changed) | |
* Plugin Changed URI: https://gist.github.com/doiftrue/ab931c1d866cb113b4ff318a5faeb3b3 | |
* Plugin URI: https://github.com/WPDevelopers/disable-comments-mu | |
* GitHub Plugin URI: https://github.com/WPDevelopers/disable-comments-mu | |
* Author: WPDeveloper | |
* Author URI: https://wpdeveloper.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# get current date | |
now = `date +"%Y-%m-%d"` | |
# copying WordPress files inside public_html folder | |
cd ~/public_html | |
tar -zcf "~/wordpress_$_now.tar.gz" wordpress_folder | |
# Database backup with mysqldump |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Set the custom Open Graph image URL for specific conditions. | |
* Add custom Twitter Social Share images for Yoast SEO for Archive pages | |
* | |
* @param string $image The default Open Graph image URL. | |
* @return string The custom Open Graph image URL, or the default URL if not found. | |
*/ | |
function artkai_set_custom_category_og_image($image) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Created header using this plugin: https://wordpress.org/plugins/header-footer-elementor/ | |
Step 1 – Now edit the above header in Elementor and add a Custom ID to the outermost section (here we are using my-custom-id ). | |
Step 2 – Now add following custom CSS. You can add it to the customizer under the ‘Additional CSS’ section or use | |
any external plugin that provides an area to add custom CSS. | |
#custom-sticky-section.elementor-section{ | |
position: fixed; | |
left: 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Add Font Group | |
*/ | |
add_filter( 'elementor/fonts/groups', function( $font_groups ) { | |
$font_groups['rb_custom_fonts'] = __( 'RB Custom Fonts' ); | |
return $font_groups; | |
} ); | |
/** | |
* Add Group Fonts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (!defined('ABSPATH')) return; // Exit if accessed directly. | |
// Attention | |
// You must have ACF and ACF Extended installed, you need a group made with a slug field that will be called 'custom_permalink' and select on which post-type to appear. Example: https://i.imgur.com/aTNpHoU.png | |
// For custom permalink of an archive you have to activate the option here: https://i.imgur.com/SOvcbBj.png and in the group with the field 'custom_permalink' you have to select on which archive to appear, example: https://i.imgur.com/dKLfDEJ.png | |
// Example of an archive: https://i.imgur.com/owENTRB.png if you do not complete 'custom_permalink' then the default will be the '$default_slug' variable | |
// If you do not want custom url rewrite on an archive you can comment the line 'add_filter('post_type_archive_link', [$this, 'archive_link'], 10, 2);' and line '$rules['^' . $custom_url . '/?$'] = $path;' | |
// Replace 'example' with your post-type name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Enabling font which stored on fonts/ folder */ | |
@font-face { | |
font-family: 'Organetto'; | |
src: url('fonts/Organetto-Light.eot'); | |
src: local('Organetto Light'), local('Organetto-Light'), | |
url('fonts/Organetto-Light.eot?#iefix') format('embedded-opentype'), | |
url('fonts/Organetto-Light.woff2') format('woff2'), | |
url('fonts/Organetto-Light.woff') format('woff'), | |
url('fonts/Organetto-Light.ttf') format('truetype'), | |
url('fonts/Organetto-Light.svg#Organetto-Light') format('svg'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Threading.Tasks; | |
using Microsoft.AspNetCore.Mvc; | |
using Umbraco.Cms.Core.Cache; | |
using Umbraco.Cms.Core.Logging; | |
using Umbraco.Cms.Core.Routing; | |
using Umbraco.Cms.Core.Security; | |
using Umbraco.Cms.Core.Services; | |
using Umbraco.Cms.Core.Web; | |
using Umbraco.Cms.Infrastructure.Persistence; | |
using Umbraco.Cms.Web.Common.Models; |
NewerOlder