Source: ../admin/classes/YasrAdmin.php, line 170
Add custom script in one of the page used by YASR, at the beginning
Argument | Type | Description |
---|---|---|
$hook | string |
Source: ../admin/classes/YasrAdmin.php, line 187
Add custom script in one of the page used by YASR, at the end
Argument | Type | Description |
---|---|---|
$hook | string |
Source: ../admin/editor/YasrEditorHooks.php, line 218
Use this action to add tabs inside shortcode creator for tinymce
Source: ../admin/editor/YasrEditorHooks.php, line 234
Use this action to add content inside shortcode creator
Argument | Type | Description |
---|---|---|
$n_multi_set | int | |
$multi_set | string | the multiset name |
Source: ../admin/editor/YasrMetaboxBelowEditor.php, line 60
Use this hook to add new tabs into the metabox below the editor
Source: ../admin/editor/YasrMetaboxBelowEditor.php, line 66
Source: ../admin/editor/YasrMetaboxBelowEditor.php, line 210
Hook here to add new content at the beginning of the div
Argument | Type | Description |
---|---|---|
$post_id | int | |
$set_id | int |
Source: ../admin/editor/YasrMetaboxBelowEditor.php, line 292
Hook here to add new content
Argument | Type | Description |
---|---|---|
$post_id | int | |
$set_id | int |
Source: ../admin/editor/YasrOnSavePost.php, line 61
Hook here to add actions when YASR save data on save_post
Argument | Type | Description |
---|---|---|
$post_id | int |
Source: ../admin/editor/YasrOnSavePost.php, line 106
Do action before overall rating is saved, works only in classic editor
Argument | Type | Description |
---|---|---|
$post_id | int | |
$rating | float |
Source: ../admin/editor/yasr-metabox-top-right.php, line 121
Hook here to add content at the bottom of the metabox
Argument | Type | Description |
---|---|---|
$post_id | int |
Source: ../admin/settings/classes/YasrSettings.php, line 255
Hook here to add new settings tab
Source: ../admin/settings/classes/YasrSettings.php, line 330
Hook here to add new settings tab content
Source: ../admin/settings/classes/YasrSettingsFooter.php, line 135
Filter to customize the footer page on the "Aspect & style" page.
Since this could contain js, this will only allow FALSE as value
Argument | Type | Description |
---|---|---|
$style_page_upgrade_pro_js | string |
Source: ../admin/settings/classes/YasrSettingsRankings.php, line 60
Source: ../admin/settings/classes/YasrSettingsRightColumn.php, line 15
Source: ../admin/settings/classes/YasrSettingsStyle.php, line 37
Source: ../admin/settings/classes/YasrSettingsStyle.php, line 48
Source: ../admin/settings/classes/YasrSettingsStyle.php, line 462
Source: ../admin/settings/classes/YasrStats.php, line 56
Use this hook to add a tab into yasr_stats_page
Source: ../admin/settings/classes/YasrStatsExport.php, line 144
Use this hook to customize the button
Source: ../admin/settings/classes/YasrStatsExport.php, line 160
Hook here to do an action at the end of the box
Source: ../admin/settings/yasr-settings-migration.php, line 63
Source: ../admin/settings/yasr-stats-page.php, line 54
Hook here to add new stats tab content
Source: ../admin/yasr-admin-init.php, line 33
Source: ../admin/yasr-admin-init.php, line 40
Source: ../admin/yasr-admin-init.php, line 56
Source: ../includes/classes/YasrDB.php, line 421
Source: ../includes/classes/YasrDB.php, line 465
Source: ../includes/classes/YasrDB.php, line 515
Source: ../includes/classes/YasrDB.php, line 560
Source: ../includes/classes/YasrDB.php, line 614
Source: ../includes/classes/YasrDB.php, line 665
Source: ../includes/classes/YasrLastRatingsWidget.php, line 85
Hook here to customize the message "You must login to see this widget." when
the shortcode yasr_user_rate_history is used
Source: ../includes/classes/YasrRichSnippetsItemTypes.php, line 91
Use this hook to add (or eventually remove) supported itemTypes
Argument | Type | Description |
---|---|---|
$itemTypes | array | an array containing all the default supported itemTypes |
Source: ../includes/classes/YasrRichSnippetsItemTypes.php, line 112
Use this hook to add optional fields for an itemType
Here the array member must contain main itemType name
E.g. if you want to add the filed 'price' to 'SoftwareApplication, you need to add
yasr_softwareapplication_price
Argument | Type | Description |
---|---|---|
$additionalFields | array | an array containing all the default supported additional fields |
Source: ../includes/classes/YasrScriptsLoader.php, line 59
Source: ../includes/classes/YasrScriptsLoader.php, line 63
Source: ../includes/classes/YasrScriptsLoader.php, line 118
Source: ../includes/classes/YasrScriptsLoader.php, line 127
Source: ../includes/classes/YasrScriptsLoader.php, line 525
Source: ../includes/rest/classes/YasrCustomEndpoint.php, line 146
Source: ../includes/rest/classes/YasrCustomEndpoint.php, line 277
Source: ../includes/shortcodes/classes/YasrNoStarsRankings.php, line 36
Source: ../includes/shortcodes/classes/YasrNoStarsRankings.php, line 63
Source: ../includes/shortcodes/classes/YasrNoStarsRankings.php, line 124
Source: ../includes/shortcodes/classes/YasrOverallRating.php, line 52
Source: ../includes/shortcodes/classes/YasrOverallRating.php, line 123
Source: ../includes/shortcodes/classes/YasrRankings.php, line 54
Source: ../includes/shortcodes/classes/YasrRankings.php, line 84
Hook here to use shortcode atts.
If not used, will work with no support for atts
Argument | Type | Description |
---|---|---|
$this->shortcode_name | string | Name of shortcode caller |
$atts | string | array |
Source: ../includes/shortcodes/classes/YasrRankings.php, line 112
Source: ../includes/shortcodes/classes/YasrRankings.php, line 144
Hook here to use shortcode atts.
If not used, shortcode will works only with setId param
Argument | Type | Description |
---|---|---|
$this->shortcode_name | string | Name of shortcode caller |
$atts | string | array |
Source: ../includes/shortcodes/classes/YasrShortcode.php, line 109
Source: ../includes/shortcodes/classes/YasrShortcode.php, line 178
Source: ../includes/shortcodes/classes/YasrShortcodesAjax.php, line 93
Hook here to add an action on visitor votes (e.g. empty cache)
Argument | Type | Description |
---|---|---|
$array_action_visitor_vote | array | An array containing post_id and is_singular |
Source: ../includes/shortcodes/classes/YasrShortcodesAjax.php, line 201
Source: ../includes/shortcodes/classes/YasrShortcodesAjax.php, line 214
Source: ../includes/shortcodes/classes/YasrShortcodesAjax.php, line 217
Source: ../includes/shortcodes/classes/YasrShortcodesAjax.php, line 328
Source: ../includes/shortcodes/classes/YasrShortcodesAjax.php, line 433
Source: ../includes/shortcodes/classes/YasrShortcodesAjax.php, line 442
Source: ../includes/shortcodes/classes/YasrShortcodesAjax.php, line 625
Source: ../includes/shortcodes/classes/YasrShortcodesAjax.php, line 676
Source: ../includes/shortcodes/classes/YasrVisitorMultiSet.php, line 113
Source: ../includes/shortcodes/classes/YasrVisitorMultiSet.php, line 167
Source: ../includes/shortcodes/classes/YasrVisitorVotes.php, line 116
Use this filter to customize yasr visitor votes readonly.
Argument | Type | Description |
---|---|---|
$shortcode_html | string | html for the shortcode |
$stored_votes | array | array with average rating data for the post id. |
$this->post_id | int | the post id |
$stored_votes | YasrDB::visitorVotes() | array |
Source: ../includes/shortcodes/classes/YasrVisitorVotes.php, line 130
Use this filter to customize the visitor votes cookie name
Argument | Type | Description |
---|---|---|
string | yasr_visitor_votes_cookie is the default name |
Source: ../includes/shortcodes/classes/YasrVisitorVotes.php, line 209
Use this filter to customize the text "You have already voted for this article with rating %rating%"
Unless you're using a multi-language site, there is no need to use this hook; you can customize this in
"General Settings" -> "Custom text to display when an user has already rated"
Source: ../includes/shortcodes/classes/YasrVisitorVotes.php, line 226
Use this filter to customize the text "you must sign in"
Unless you're using a multi-language site, there is no need to use this hook; you can customize this in
"General Settings" -> "Custom text to display when login is required to vote"
Source: ../includes/shortcodes/classes/YasrVisitorVotes.php, line 261
Use this filter to customize text before visitor rating.
Unless you're using a multi-language site, there is no need to use this hook; you can customize this in
"General Settings" -> "Custom text to display BEFORE Visitor Rating"
Argument | Type | Description |
---|---|---|
$number_of_votes | int | the total number of votes |
$average_rating | float | the average rating |
$this->unique_id | string | the dom ID |
Source: ../includes/shortcodes/classes/YasrVisitorVotes.php, line 317
Use this filter to customize text after visitor rating.
Unless you're using a multi-language site, there is no need to use this hook; you can customize this in
"General Settings" -> "Custom text to display AFTER Visitor Rating"
Argument | Type | Description |
---|---|---|
$number_of_votes | int | the total number of votes |
$average_rating | float | the average rating |
$this->unique_id | string | the dom ID |
Source: ../includes/shortcodes/classes/YasrVisitorVotes.php, line 433
Use this filter to customize the yasr_visitor_votes shortcode
Argument | Type | Description |
---|---|---|
$shortcode_html | string | html for the shortcode |
$this->post_id | int | the post id |
$this->starSize | string | () the star size |
$this->readonly | string | is the stars are readonly or not |
$this->ajax_nonce_visitor | string | the WordPress nonce |
$this->is_singular | string | if the current page is_singular or not |
Source: ../includes/yasr-includes-defines.php, line 33
Source: ../includes/yasr-includes-functions.php, line 156
Source: ../public/classes/YasrPublicFilters.php, line 62
Source: ../public/classes/YasrPublicFilters.php, line 92
Source: ../public/classes/YasrPublicFilters.php, line 276
Source: ../public/classes/YasrPublicFilters.php, line 313
Source: ../public/classes/YasrRichSnippets.php, line 77
Use this hook to write your custom microdata from scratch
Argument | Type | Description |
---|---|---|
$item_type_for_post | string | the itemType selected for the post |
Source: ../public/classes/YasrRichSnippets.php, line 191
Source: ../public/classes/YasrRichSnippets.php, line 223
Source: ../templates/content.php, line 28
hook here to add content at the beginning of yasr_display_posts
Source: ../templates/content.php, line 61
hook here to add content at the end of yasr_display_posts
Source: ../yasr_pro/public/classes/YasrProCommentForm.php, line 170
Source: ../yasr_pro/public/classes/YasrProCommentForm.php, line 284
Source: ../yasr_pro/public/classes/YasrProCommentForm.php, line 496
Source: ../yasr_pro/public/classes/YasrProCommentForm.php, line 505
Source: ../yet-another-stars-rating.php, line 82