Free Directory, Listing & Classifieds WordPress Plugin Support General HivePress Add text to payment options page

Add text to payment options page

  • Author
    Posts
  • Aizen

    Hi Ihor,

    I tried looking through the documents, but couldn’t find how to add text using snippet to the following page:

    /submit-listing/package/

    Can you help please?

    Thank you

    A

    ihordeveloper

    Hi,

    The code is the same as for any other page, the only thing that changes is the template and block name, in this case it’s “listing_submit_package_page” and “page_content”:

    add_filter(
    	'hivepress/v1/templates/listing_submit_package_page',
    	function( $template ) {
    		return HivePress\Helpers\merge_trees(
    			$template,
    			[
    				'blocks' => [
    					'page_content' => [
    						'blocks' => [
    							'custom_block_name' => [
    								'type'    => 'content',
    								'content' => 'custom text here',
    								'_order'  => 7,
    							],
    						],
    					],
    				],
    			]
    		);
    	}
    );
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Subscribe

Sign In

Don't have an account? Register

Forgot password?

Register

Already have an account? Sign In

Forgot password?

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.