This file contains hidden or 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
{ | |
"basics": { | |
"name": "Rihards Mantejs", | |
"label": "Web Developer", | |
"email": "dexit@dyc.lv", | |
"phone": "07471617269", | |
"url": "https://www.linkedin.com/in/rihards-mantejs", | |
"summary": "Highly experienced and results-oriented IT professional with over 15 years of progressive experience in diverse IT environments, seeking to leverage a comprehensive skill set as a Systems Development Officer. Proven ability to support the full lifecycle of system development, from initial analysis and design through to implementation, deployment, and ongoing maintenance. Expertise spans full-stack development, robust systems management, seamless API integration, database management, and task automation using scripting languages such as Bash, PoSH, and PHP. Adept at translating complex business requirements into effective technical specifications, providing critical technical support, and facilitating the integration of new systems with existing infrastructure. Possesses strong analytical, problem-solving, |
This file contains hidden or 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
{ | |
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/master/schema.json", | |
"basics": { | |
"email": "glennmartinjohnson@gmail.com", | |
"label": "Microsoft 365 Implementation Specialist", | |
"location": { | |
"city": "Boston", | |
"countryCode": "UK", | |
"region": "Lincolnshire" | |
}, |
This file contains hidden or 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
import "jsr:@supabase/functions-js/edge-runtime.d.ts"; | |
import { createHmac } from "node:crypto"; | |
import { createClient } from "jsr:@supabase/supabase-js"; | |
Deno.serve(async (req: Request) => { | |
const secret = Deno.env.get("HUBSPOT_SECRET")!; | |
const signature = req.headers.get("x-hub-signature")!; | |
const body = await req.text(); | |
const hmac = createHmac("sha256", secret).update(body).digest("hex"); |
This file contains hidden or 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 | |
add_filter( 'elementor/dynamic_tags/tag_value', function( $value, $tag ) { | |
// بررسی اینکه آیا تگ مورد نظر "custom field" هست | |
if ( $tag->get_name() === 'post-custom-field' ) { | |
// گرفتن post ID فعلی | |
$post_id = get_the_ID(); |
This file contains hidden or 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
if ( ! function_exists('write_log')) { | |
function write_log ( $log ) { | |
if ( is_array( $log ) || is_object( $log ) ) { | |
error_log( print_r( $log, true ) ); | |
} else { | |
error_log( $log ); | |
} | |
} | |
} |
This file contains hidden or 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
function disable_elementor_ai_module() { | |
if ( class_exists( 'Elementor\Plugin' ) && isset( \Elementor\Plugin::$instance->modules_manager ) ) { | |
$modules_manager = \Elementor\Plugin::$instance->modules_manager; | |
// Disable AI module entirely by removing its registration | |
remove_all_actions( 'personal_options' ); | |
remove_all_actions( 'personal_options_update' ); | |
remove_all_actions( 'edit_user_profile_update' ); | |
// Disable AI option across all users |
This file contains hidden or 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 | |
/* | |
:: Fixing SEO Issues in the Woodmart Theme by Converting H3 to P | |
>> https://www.linkedin.com/posts/activity-7254435929468100608-t3gk | |
----------------------------------------------------------------- | |
If you’re using the Woodmart theme and notice h3 tags being used | |
in places where they shouldn’t be (like regular content sections), | |
it can hurt your SEO. Here’s a quick PHP solution to dynamically | |
convert those h3 tags with the class wd-entities-title into p tags, |
This file contains hidden or 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: Fix JSON Support Detection for Action Scheduler | |
* Description: Fixes the JSON support detection in Action Scheduler for MariaDB on Pantheon | |
* Version: 1.0.0 | |
* Author: Lindsey Catlett, Pantheon | |
*/ | |
// Make sure this runs before Action Scheduler initializes | |
add_action('plugins_loaded', 'fix_json_support_detection', 5); |
This file contains hidden or 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 | |
//widgets/custom-widget.php | |
class Custom_Widget extends \Elementor\Widget_Base { | |
public function get_name() { | |
return 'custom_widget'; | |
} | |
public function get_title() { | |
return __('Custom Widget', 'my-plugin'); | |
} |
This file contains hidden or 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 | |
/* Cleaner WP header | |
*===============================================================*/ | |
function clean_header() { | |
// Remove the REST API lines from the HTML Header | |
remove_action( 'wp_head', 'rest_output_link_wp_head', 10 ); | |
remove_action( 'wp_head', 'wp_oembed_add_discovery_links', 10 ); |