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 | |
// add this code to a custom plugin | |
add_filter('appcommunity_prepare_user', function( $data, $request ) { | |
// $data['id'] is the user_id. With that, you can look up user meta like this | |
// $data['appp']['below_content'] = '<p>Welcome back ' . get_user_meta( $data['id'], 'nickname', 1 ) . '!</p>'; | |
// you can also show xprofile fields like this | |
$data['appp']['user_actions'] = '<div class="custom-profile-fields"><p><strong>' . xprofile_get_field( 1, $data['id'] )->name . '</strong><br/>' . xprofile_get_field_data( 1, $data['id'] ) . '</p><p><strong>' . xprofile_get_field( 2, $data['id'] )->name . '</strong><br/>' . xprofile_get_field_data( 2, $data['id'] ) . '</p></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 | |
/* | |
Plugin Name: In App Purchases for MemberPress | |
Plugin URI: https://apppresser.com | |
Description: This plugin listens for in app purchases or cancellations and adds/removes members from a membership level. | |
Version: 2.0.0 | |
Author: Scott Bolinger | |
Author URI: https://apppresser.com | |
License: GPLv2 | |
*/ |
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 | |
/* | |
* Plugin Name: ECP to WP-API (Posts Controller) | |
* Plugin URI: http://scottbolinger.com | |
* Description: Add tribe_events post type to WP-API using the posts controller. | |
* Version: 0.1 | |
* Author: Scott Bolinger | |
* Author URI: http://scottbolinger.com | |
* | |
* @author Scott Bolinger |
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 this code to a custom HTML page to create a form that allows your users to purchase --> | |
<div padding> | |
<h2>Purchase</h2> | |
<p>For just $.99 per month, get access to premium content. Your subscription will automatically renew, cancel any time.</p> | |
<p>Enter your information below and click subscribe. By subscribing, you agree to the <a href="https://mysite.com/terms" target="_blank">terms of service.</a></p> | |
<p>Existing users, enter your username and password. New users, make up a username and password you will use to login.</p> |
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
<ion-grid> | |
<ion-row> | |
<ion-col col-12> | |
<img src="https://myapppresser.com/wp-content/uploads/2017/08/pixabay.com/salad-2204502_640.jpg"/> | |
</ion-col> | |
</ion-row> | |
<ion-row> | |
<ion-list> |
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 class="card-background-page"> | |
<ion-card (click)="pushPage('destinations-1')"> | |
<img src="https://myapppresser.com/wp-content/uploads/2017/08/pixabay.com/panorama-2154194_640.jpg"/> | |
<div class="card-title">San Francisco</div> | |
<div class="card-subtitle">22 Spots</div> | |
<div class="card-desc">Diam tibique accommodare vis te.</div> | |
</ion-card> | |
<ion-card (click)="pushPage('destinations-2')"> |
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
<ion-slides pager [dir]="platform.isRTL?'rtl':'ltr'"> | |
<ion-slide> | |
<div class="icon-hero"><ion-icon name="aperture"></ion-icon></div> | |
<h2 class="slide-title">Learn</h2> | |
<p>Learn from our library of educational materials, and share with your friends.</p> | |
</ion-slide> | |
<ion-slide> | |
<div class="icon-hero"><ion-icon name="people"></ion-icon></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
<!-- this code can be copied/pasted directly into an AppPresser custom HTML page. Edit as necessary. --> | |
<ion-card class="homepage-demo"> | |
<iframe width="560" height="315" src="https://www.youtube.com/embed/J5mX7RJGj2M?rel=0&showinfo=0" frameborder="0" allowfullscreen></iframe> | |
<ion-card-content> | |
<ion-card-title> | |
Welcome to our Church! | |
</ion-card-title> |
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
// If you want to do a for loop but you are executing a promise inside it, you have to do something like this | |
// It's tricky because you have to wait for the promise to resolve before you go to the next iteration | |
var item = { 1:'$2.00', 3:'$4.00', 5:'$6.00' }; | |
(async function loop() { | |
for ( var id in item ) { | |
await runPromise( id ); | |
} | |
})(); |
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 | |
// add this code to a plugin | |
add_filter('appcommunity_activity_content', function( $content, $id ) { | |
if( !function_exists('buddyboss_media_compat_get_meta') ) { | |
return $content; | |
} |