Changeset 3095853
- Timestamp:
- 05/31/2024 07:21:06 PM (19 months ago)
- File:
-
- 1 edited
-
wds-site-documentation/tags/1.1.0/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wds-site-documentation/tags/1.1.0/readme.txt
r3095793 r3095853 88 88 The URLs for the movie and PDF files can be modified with the `wds_documentation_video_url` and `wds_documentation_pdf_url` filters respectively. For example: 89 89 90 ` ``90 ` 91 91 add_filter( 'wds_documentation_pdf_url', function( $pdf_url ) { 92 92 return 'https://agency.site/docs/client.pdf'; 93 93 }, 10, 1 ); 94 ` ``94 ` 95 95 96 96 The upload buttons can be turned off with the filter `wds_documentation_enable_changes`. To turn off the buttons, add this code to your theme's `functions.php` file: 97 97 98 ` ``98 ` 99 99 add_filter( 'wds_documentation_enable_changes', '__return_false', 10 ); 100 ` ``100 ` 101 101 102 102 The banner image can be modified with `wds_documentation_banner_url`: 103 103 104 ` ``104 ` 105 105 add_filter( 'wds_documentation_banner_url', function( $banner_url ) { 106 106 return 'https://agency.site/docs/agency.png'; 107 107 }, 10, 1 ); 108 ` ``108 ` 109 109 110 110 The footer text can be customized with `wds_documentation_footer`: 111 111 112 ` ``112 ` 113 113 add_filter( 'wds_documentation_footer', function( $footer ) { 114 114 return '<a href="mailto:[email protected]">Contact us!</a>'; 115 115 }, 10, 1 ); 116 ` ``116 `
Note: See TracChangeset
for help on using the changeset viewer.