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_action( 'wp_footer', 'redirect_cf7' ); | |
function redirect_cf7() { | |
?> | |
<script type="text/javascript"> | |
document.addEventListener( 'wpcf7mailsent', function( event ) { | |
if ( '1460' == event.detail.contactFormId ) { // Sends sumissions on form 1460 to the custom thank you page | |
location = '<?php echo do_shortcode('[ppp_private_link post_id=2614 access_limit=1 access_expiry=2]') ?>'; | |
} | |
}, false ); |
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_action( 'wp_footer', 'redirect_cf7' ); | |
function redirect_cf7() { | |
?> | |
<script type="text/javascript"> | |
document.addEventListener( 'wpcf7mailsent', function( event ) { | |
if ( '1460' == event.detail.contactFormId ) { // Sends sumissions on form 1460 to the custom thank you page | |
location = 'https://example.com/thank-you/'; | |
} | |
}, false ); |
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 | |
/** | |
* Handle auto upgrade extension | |
*/ | |
public function pda_handle_upgrade_extension() { | |
$updates = get_plugin_updates(); | |
$pda_skin = new PDA_WP_Upgrader_Skin(); | |
include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; | |
$upgrader = new Plugin_Upgrader( $pda_skin ); | |
foreach ( $updates as $plugin ) { |
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 | |
include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; | |
if ( ! class_exists( 'PDA_WP_Upgrader_Skin' ) ) { | |
class PDA_WP_Upgrader_Skin extends WP_Upgrader_Skin { | |
function feedback( $string ) { | |
return; | |
} | |
} |
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 | |
function pda_auto_update_specific_plugins ( $update, $item ) { | |
$plugins = array ( | |
'wp-pda-ip-block', | |
'pda-membership-integration', | |
); | |
if ( in_array( $item->slug, $plugins ) ) { | |
return true; // We can add more control logic here, for example only update in the specific version | |
} else { |
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
<div> | |
<hello-vue></hello-vue> | |
</div> |
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 | |
wp_enqueue_script( | |
'csw_bundle', | |
plugin_dir_url( CSW_BASE_FILE ) . 'admin/js/dist/gists-snippet-bundle.js', | |
array(), | |
CSW_VERSION, | |
true | |
); |
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
import Vue from 'vue'; | |
import App from './App.vue'; | |
window.addEventListener('load', () => { | |
new Vue({ | |
el: '#csw-app', | |
render: h => h(App), | |
}); | |
}); |
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
<template> | |
<form> | |
OAuth Token: <br/> | |
<input type="text" name="oauth-token" v-model="oauthToken"/> | |
<br/><br/> | |
<input type="submit" value="Save changes" v-on:click="save"/> | |
</form> | |
</template> | |
<script> |
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
{ | |
"name": "app", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1", | |
"dev": "webpack --config webpack.dev.js --process -w", | |
"build": "webpack --config webpack.prod.js" | |
}, |