[Pro Sites] Add notes below pricing table

When editing the checkout page, any text added in the editor appears above the pricing table. Is it possible to add text below the pricing table?

It's also worth noting that if you change the Rebrand Pro Sites value, all previous text customizations to the checkout page are lost.

  • Ash
    • WordPress Hacker

    Hello drew_mathers

    It will need to have some custom code. Please try the following code:

    add_filter( 'prosites_render_checkout_page', function( $content, $blog_id, $domain ) {
    	$html = 'Custom Text At the bottom';
    
    	return $content . $html;
    }, 99, 3 );

    Change $html = 'Custom Text At the bottom'; with your custom text.

    You can use this code in your child theme's functions.php if the theme is not changed. Otherwise mu-plugin is the best option. To create a mu-plugin, go to wp-content/mu-plugins folder. If there is no mu-plugins folder then, create one. Now, inside the mu-plugins folder create file with name anything.php (make sure file extension is .php). Now start with a <?php tag and then put the above code.

    Hope it helps! Please feel free to ask more questions if you have any.

    Have a nice day!

    Cheers,
    Ash

  • drew_mathers
    • Design Lord, Child of Thor

    Hi Ash,

    I tried modifying your code to pull the content from a specific page instead of hard-coding it in the function. My function resulted in no pricing table and no custom text.

    add_filter( 'prosites_render_checkout_page', function( $content, $blog_id, $domain ) {
    	$page = get_page_by_path( 'below-pricing-table' );
    	$html = apply_filters('the_content', $page->post_content); 
    
    	return $content . $html;
    }, 99, 3 );

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.