Changes between Initial Version and Version 1 of Ticket #14808, comment 8
- Timestamp:
- 04/12/2016 03:25:43 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #14808, comment 8
initial v1 7 7 * Filter the function documentation URL in theme editor. 8 8 * 9 * @param string $url 9 * @param string $url a default url if $provider doesn't provide a custom url 10 10 * @param string $provider Name of the theme or plugin 11 11 * @param string $file full path of the file being edited … … 13 13 */ 14 14 function child_documentation_url( $url, $provider, $file ) { 15 16 if ( 'My Awesome Theme ' != $theme)15 // Check if $provider is handled by this filter. If not, use default. 16 if ( 'My Awesome Theme or Plugin' != $provider ) 17 17 return $url; 18 18 // Provide some kind of logic here to generate correct documentation url for $file. 19 19 return 'http://my.example.com/?theme= ' . $provider . '&function='; 20 21 20 } 22 21 }}}