Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

guillermo gtamborero

🏠
Working from home
View GitHub Profile
@gtamborero
gtamborero / export-acf-user-fields.php
Created Feb 22, 2022
ACF Custom Data Export (Advanced Custom Fields - WordPress)
View export-acf-user-fields.php
<?php
/**
* The plugin bootstrap file
*
* @link iproject.cat
* @since 1.0.0
* @package Export ACF fields to Excel
*
* @wordpress-plugin
@gtamborero
gtamborero / backend-change-notifications.php
Last active Feb 22, 2022
ACF Backend Notifications on Change (WordPress) - When a user makes changes from the Back End, we create a: post notification or something else
View backend-change-notifications.php
<?php
// What is interesting about this plugin is that it does a deep compare between the post and the updated post
// and get the changes inside ACF,
// so you will know if an admin or someone has changed an image, a field, a repeater, etc. and send a mail, a post, or whatever
// INSTALLATION:
// Create inside /plugins/ a folder named /backend-change-notifications
// Paste inside /backend-change-notifications this backend-change-notifications.php file
View test-button.php
<script>
function toggleVideoToUser( videoId, tipo, element ){
isChecked = element.classList.contains('checked');
//console.log(isChecked);
</script>