Home Plugin documentation Hooks and functions Filters pip/custom_font/url

 

 

Here we go!

 

pip/custom_font/url

Heads up!

This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don’t provide support for code customizations or 3rd party development.

This filter allows you to change URL for custom fonts files

add_filter( 'pip/custom_font/url', function ( $attachment_new_upload_url, $attachment_new_upload_path ) {
				$attachment_new_upload_url = site_url() . $attachment_new_upload_path;

				return $attachment_new_upload_url;
} );

You didn’t find the answer you were looking for?

or you think a specific topic deserve more informations?

 

Wave to bottom