Skip to content

Commit

Permalink
filter premium urls
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesros161 committed May 25, 2022
1 parent 0a3b0a6 commit 94c8b99
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/includes/class-boldgrid-framework.php
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ private function define_admin_hooks() {
$boldgrid_ppb = new Boldgrid_Framework_PPB( $this->configs );
$pro_feature_cards = new BoldGrid_Framework_Pro_Feature_Cards( $this->configs );

$this->loader->add_filter( 'bgtfw_upgrade_url_pro_features', $pro_feature_cards, 'get_upgrade_url', 10, 0 );
$this->loader->add_filter( 'bgtfw_upgrade_url_pro_features', $pro_feature_cards, 'get_upgrade_url', 0 );

// This adds Pro Feature notice counts to the admin menu.
$this->loader->add_action( 'admin_menu', $pro_feature_cards, 'show_notice_counts' );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,7 @@ public function add_panels( $wp_customize ) {
'title' => esc_html__( 'Get More Features', 'bgtfw' ),
'upsell_text' => esc_html__( 'Upgrade Crio', 'bgtfw' ),
'upsell_title' => esc_html__( 'Upgrade Crio', 'bgtfw' ),
'upsell_url' => 'https://boldgrid.com/wordpress-themes/crio/?source=customize-main',
'upsell_url' => esc_url( apply_filters( 'bgtfw_premium_url', 'https://boldgrid.com/wordpress-themes/crio/?source=customize-main' ) ),
'priority' => 0,
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function __construct( $configs ) {
*
* @return string upgrade url.
*/
public function get_upgrade_url() {
public function get_upgrade_url( $url ) {
return $this->upgrade_url;
}

Expand Down

0 comments on commit 94c8b99

Please sign in to comment.