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
{ | |
"widget_title": "Custom Widget", | |
"widget_size": "full", | |
"widget_html": "<div class=\"items-center dol-empty-state max-w-screen-xl gap-8 px-4 py-2 mx-auto xl:gap-16 md:grid md:grid-cols-2 sm:py-16 lg:px-6\">\n <div class=\"mt-4 md:mt-0\">\n <h2 class=\"mb-4 text-xl font-extrabold tracking-tight text-gray-900 dark:text-white\">No vulnerabilities detected</h2>\n <p class=\"mb-6 font-light text-gray-500 md:text-lg dark:text-gray-400\">\n Your sites are clean. If we detect any vulnerability we will let you know immediately.\n </p>\n </div>\n</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
[{"role":"user","content":"Can you write something about our Stuart?"},{"role":"assistant","content":"Certainly! Here's a draft for the newsletter content focusing on the Site Backups feature.\n\n---\n\n**Headline:** \nSafeguard Your Digital Masterpieces: Introducing Dollie's Site Backups!\n\n**Introduction:** \nIn the digital realm, our websites are akin to towering cities, reflecting months, if not years, of craftsmanship. Just as historians protect ancient scrolls, at Dollie, we understand the significance of safeguarding your online legacy. Cast your mind back to the days of early web development; a single misstep could lead to digital disaster. No more. With Dollie's Site Backups, the assurance of a safety net is no longer a luxury\u2014it's your new reality.\n\n**Main Content:** \nNavigate through the new waves of web prowess with Dollie's cutting-edge Site Backups feature. Offering more than just a fallback, our latest update brings you the tranquility of knowing that your sites are replicated in a |
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 setup_cover_profile_nav(){ | |
global $bp; | |
$profile_link = bp_loggedin_user_domain() . $bp->profile->slug . '/'; | |
$args = array( | |
'name' => 'Profile Cover', | |
'slug' => 'change-cover', | |
'parent_url' => $profile_link, | |
'parent_slug' => $bp->profile->slug, | |
'screen_function' => 'screen_change_cover', |
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 | |
// Profile Edit Message | |
function cf_profile_field_intro_text() { { ?> | |
<?php | |
global $bp; | |
$user_id = $bp->loggedin_user->id; | |
$profile_edit_link = bp_loggedin_user_domain() . $bp->profile->slug . 'profile/edit/group/2/'; | |
if ( bp_get_profile_field_data( 'field=Your Relationship with CF&user_id='.$user_id) == FALSE && !bp_is_profile_edit() ) : ?> | |
<div id="complete-profile-message" class="intro-text important"> |
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 | |
if ( function_exists( 'bp_is_member' ) ) { | |
/** | |
* Add EDD Purchases Page | |
* | |
*/ | |
function edd_bp_setup_purchases(){ | |
global $bp; | |
$profile_link = bp_loggedin_user_domain() . $bp->profile->slug . '/'; | |
$args = array( |
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 | |
//Redirect on special URL format. ie: https://examplesite.com/?profile=visit | |
function fb_acf_profile_redirect() | |
{ | |
$profile = $_GET['profile']; | |
//Is the profile link being requested | |
if ( $profile == 'visit' ) { | |
wp_safe_redirect( get_field('profile_redirect', 'option') ); | |
exit; | |
} |
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 | |
/** | |
* Enqueue the stylesheet. | |
* http://aristeides.com/blog/modifying-wordpress-customizer/ | |
*/ | |
function my_enqueue_customizer_stylesheet() { | |
wp_register_style( 'my-customizer-css', YOUR_PLUGIN_URL. 'assets/css/customizer.css', NULL, NULL, 'all' ); | |
wp_enqueue_style( 'my-customizer-css' ); |
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 bp_edd_redirect() | |
//Redirect logged in users from edd page to BuddyPress page. Make sure to change the page slug correctly. | |
{ | |
if( is_user_logged_in() && is_page('purchases') ) | |
{ | |
global $bp; | |
wp_redirect( bp_loggedin_user_domain() . $bp->profile->slug . '/my-purchases/', 301 ); | |
exit(); | |
} |
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
function jpr_generateRandomString($length = 10) { | |
$characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; | |
$charactersLength = strlen($characters); | |
$randomString = ''; | |
for ($i = 0; $i < $length; $i++) { | |
$randomString .= $characters[rand(0, $charactersLength - 1)]; | |
} | |
return $randomString; | |
} |
NewerOlder