How does wordpress display plugins? -
i can sort of see logic in displaying plugin information via shortcode. i'd assume putting shortcode on post, add echo do_shortcode post file.
what don't understand when there no shortcode, such rating plugin using.
the plugin has folder in website information stored. information displayed on front page (post rating) there no code in index.php calls of plugin files.
where wordpress call plugin files loaded , how can see file being loaded?
the vast majority of plugins use hooks in order implement functionality. can find list of these hooks on wordpress developer site here.
one of commonly used examples wp_enqueue_scripts
, used implement front-end styling , javascript files.
take wordpress stack exchange, here, more information on how filters , hooks powered.
Comments
Post a Comment