- How to handle SSH keys with ec2-github actions https://zellwk.com/blog/github-actions-deploy/
- SSH_PRIVATE_KEY
- HOST_NAME / IP_ADDRESS
- USER_NAME
:q[uit]
| <?php | |
| /** | |
| * Plugin Name: WooPAM: Woo Product Attributes Modifier | |
| * Description: Bulk update 'custom meta product attributes' to 'taxonomy product attributes' in WooCommerce. Supports the GET variables, like: woopam_mode=run&woopam_from_attribute_meta=colour&woopam_to_attribute_tax=pa_colour&woopam_keep_attribute_meta&woopam_posts_per_page=10&woopam_paged=0&woopam_post_type=product&woopam_post_status=any. WARNING: Backup DB first!!! | |
| * Plugin Author: birgire | |
| * Author URI: https://github.com/birgire | |
| * Plugin URI: https://gist.github.com/birgire/0ed300ae4436fcaf508c | |
| * Version: 1.0.0 | |
| * License: GPL2+ | |
| * Text Domain: woopam |
| #!/bin/bash -e | |
| clear | |
| echo "============================================" | |
| echo "WordPress Install Script" | |
| echo "============================================" | |
| echo "Database Name: " | |
| read -e dbname | |
| echo "Database User: " | |
| read -e dbuser | |
| echo "Database Password: " |
| add_filter( 'random_password', 'itsg_disable_random_password', 10, 2 ); | |
| function itsg_disable_random_password( $password ) { | |
| $action = isset( $_GET['action'] ) ? $_GET['action'] : ''; | |
| if ( 'wp-login.php' === $GLOBALS['pagenow'] && ( 'rp' == $action || 'resetpass' == $action ) ) { | |
| return ''; | |
| } | |
| return $password; |
| /* WC Vendors Pro - Add some new page links to the Pro Dashboard */ | |
| function new_dashboard_pages( $pages ){ | |
| $pages[] = array( 'label' => 'New Link', 'slug' => 'http://mysomelink.com' ); // Add stuff here | |
| return $pages; | |
| } | |
| add_filter( 'wcv_pro_dashboard_urls', 'new_dashboard_pages' ); |
| <?php | |
| // This code goes in your theme's functions.php | |
| function form_caracteristica( $object_id ) { | |
| WCVendors_Pro_Form_helper::select( array( | |
| 'post_id' => $object_id, | |
| 'id' => 'wcv_custom_product_caracteristicas', | |
| 'class' => 'select2', | |
| 'label' => __('Caracteristicas', 'wcvendors-pro'), | |
| 'show_option_none' => __('Select a caracteristicas', 'wcvendors-pro'), |