Skip to content

Instantly share code, notes, and snippets.

View flyingwebie's full-sized avatar
:octocat:
Coding coding coding...bug

Flying Web Solutions flyingwebie

:octocat:
Coding coding coding...bug
  • flyingwebsolutions
  • Cork
View GitHub Profile
@flyingwebie
flyingwebie / admin-elements-hiding-script.php
Created July 8, 2024 14:12
This WordPress script allows specific users to toggle the visibility of selected admin menu items. It adds a toggle button to the admin bar, enabling easy switching between full and restricted admin views.
<?php
// Configuration - Users who can see everything and use the toggle
$GLOBALS['usernames_to_not_hide'] = array('superadmin');
// Multiusers
//$GLOBALS['usernames_to_not_hide'] = array('superuser1', 'superuser2');
// Update the pages_to_hide array
$GLOBALS['pages_to_hide'] = array(
'index.php' => array('update-core.php'),

Possibili KPI per Eureka!

1. Aumentare la Consapevolezza del Marchio

KPI Pro Contro
Traffico del Sito Web Facile da monitorare Non si traduce direttamente in risultati commerciali
Portata sui Social Media Mostra il potenziale pubblico Non tiene conto della qualità dell'interazione
Menzioni del Marchio Indica la popolarità del marchio Difficile da misurare accuratamente

2. Migliorare il Coinvolgimento dei Clienti

@flyingwebie
flyingwebie / id_25-reduced.json
Created January 3, 2024 17:35
id_25-reduced.json
{
"TaxRate": {
"Name": "RS",
"Description": "VAT",
"Active": true,
"RateValue": 13.5,
"AgencyRef": {
"value": "1"
},
"TaxReturnLineRef": {
@flyingwebie
flyingwebie / id_4-standard.json
Created January 3, 2024 17:34
id_4-standard.json
{
"TaxRate": {
"Name": "SS",
"Description": "VAT",
"Active": true,
"AgencyRef": {
"value": "1"
},
"TaxReturnLineRef": {
"value": "1"
@flyingwebie
flyingwebie / tax-rates.json
Created January 3, 2024 17:20
tax-rates.json
{
"QueryResponse": {
"TaxCode": [
{
"Name": "0%",
"Description": "Goods that are VAT-taxable, but the rate of VAT you must charge your customers is 0%.",
"Active": true,
"Hidden": false,
"Taxable": true,
"TaxGroup": true,
@flyingwebie
flyingwebie / allinonemigration.md
Created January 21, 2023 16:01 — forked from giovanni-d/allinonemigration.md
All-in-One WP Migration - Restore From Server (without PRO version) - Restore

All-in-One WP Migration Restore From Server (without pro version)

If you don't want to pay for the PRO version of this plugin, and you want to use the "Restore from Server" functionally that was present in the version 6.77, follow the instructions below:

  1. Open the js file: wp-content/plugins/all-in-one-wp-migration/lib/view/assets/javascript/backups.min.js
  2. On line 1208, replace the code below:
$('.ai1wm-backup-restore').click(function (e) {
@flyingwebie
flyingwebie / WSForm-custom-hook.php
Last active August 15, 2022 09:41
Custom hook to get Custom Fields from Meta Box Settings Page
<?php
// Add a filter for WordPress Filter Hook data source to use
add_filter( 'fws_get_addon_website_hook', 'fws_get_addon_website_callback', 10, 3 );
// My callback function for tag wsf_test_data_source_hook
function fws_get_addon_website_callback( $data_grid, $field_id, $form_object ) {
// Check field ID
if( $field_id !== 137) { return $data_grid; }
@flyingwebie
flyingwebie / WSForm_fws_pull_metabox_data.php
Last active August 1, 2024 13:24
WSForm: Pull data from MetaBox Settings data and populate Select or Checkbox
<?php
// Creation Websites
// Add filter to change form '2' for Web Design prior to rendering
add_filter("wsf_pre_render_2", "fws_create_websites", 10, 1); // <=== CHANGE THE FUNCTION NAME
function fws_create_websites($form) {
// Get MetaBox Custom Fields - Setting Page -- Master Pricing
$setting_page = "master-pricing";
$field_name = "creation_services"; // <=== CHANGE ME WITH THE RIGHT CUSTOM FIELD ID (METABOX)
@flyingwebie
flyingwebie / get-expire-date-memberpress.php
Last active May 2, 2022 09:52
Helpful function for MemberPress with Oxygen Builder.
<?php
function mpr_get_expire_date() {
if(is_user_logged_in()){
$user = MeprUtils::get_currentuserinfo();
$subscriptions = $user->active_product_subscriptions('transactions');
if(!empty($subscriptions)) {
foreach($subscriptions as $s){
// Get Today Date
$today = date("d-m-Y");
@flyingwebie
flyingwebie / wp_replace_domain.md
Created February 22, 2022 14:28 — forked from anhkevin/wp_replace_domain.md
Mysql replace domain Wordpress

Mysql replace domain Wordpress

SQL to replace domain name in Wordpress MySQL

Usage

  • Step 1: Updating serialised array in mysql
  • Step 2: Updating not serialised in mysql