Skip to content

sdobreff/footnotes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Awesome Footnotes

Awesome Footnotes is a simple, but powerful, method of adding footnotes into your posts and pages.

Features include...

  • Simple footnote insertion via double parentheses
  • Combine identical notes
  • Solution for paginated posts
  • Suppress Footnotes on specific page types
  • Option to display ‘pretty’ tooltips using jQuery
  • Lots of configuration options

Creating a footnote is incredibly simple - you just need to include your footnote in double parentheses, such as this...

This is a sentence ((and this is your footnote)).

The footnote will then appear at the bottom of your post/page.

 

You can test the plugin in WP playground here: WP Playground test

Hooks

/**
 * Apply the content filters - parses the content and adds the extracted footnotes
 *
 * @param array - The array with the hooks to be applied for the processing.
 */
\apply_filters( 'awef_process_content_hooks', array( 'the_content' ) );
  • Called in class-footnotes-formatter.php
/**
 * Gives the ability to change the footnotes header to something else
 *
 * @param string - The parsed footnotes header.
 *
 * @since 2.4.0
 */
\apply_filters( 'awef_footnotes_header', $footnotes_header );
  • Called in class-footnotes-formatter.php
/**
 * Gives the ability to change the footnotes header to something else
 *
 * @param string - The parsed footnotes header.
 *
 * @since 2.4.0
 */
\apply_filters( 'awef_footnotes_footer', $footnotes_footer );
  • Called in class-footnotes-formatter.php