Giveaways and Contests by RafflePress icon
Utilities

Giveaways and Contests by RafflePress hooks reference

  • By Syed Balkhi
  • v1.12.28 New
  • Updated

Giveaways and Contests by RafflePress 1.12.28 has 1 actions and 12 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.

How to use these hooks

Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.

functions.phpyour child theme
// Run your own code when Giveaways and Contests by RafflePress fires an action
add_action( 'rafflepress_post_entry_add', function( $arg1 ) {
	// Your code runs here.
}, 10, 1 );

// Change a value Giveaways and Contests by RafflePress is about to use
add_filter( 'rafflepress_list_users_capability', function( $value ) {
	// Change $value here.
	return $value;
}, 10, 1 );

Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.

All hooks

  • app/contestant.php line 285 · used in 10 places
    apply_filters( 'rafflepress_list_users_capability', 'list_users' );
  • app/bootstrap.php line 215 · used in 6 places
    apply_filters( 'rafflepress_manage_options_capability', 'manage_options' );
  • app/functions-utils.php line 778 · used in 4 places
    apply_filters( 'rafflepress_install_plugins_capability', 'install_plugins' );
  • app/routes.php line 92 · used in 3 places
    apply_filters( 'rafflepress_menu_capability', 'edit_others_posts' );
  • app/rafflepress.php line 362 · used in 3 places
    do_action( 'rafflepress_post_entry_add', array( 'giveaway_id' => $giveaway_id, 'contestant_id' => $contestant['id'], 'action_id' => $giveaway_auto_entry_action_id, 'entry_option_meta' => '{"action":"Entering Giveaway"}', ) );
  • app/functions-utils.php line 861 · used in 2 places
    apply_filters( 'rafflepress_activate_plugins_capability', 'activate_plugins' );
  • app/notifications.php line 94
    apply_filters( 'rafflepress_admin_notifications_has_access', $access );
  • app/routes.php line 394
    apply_filters( 'rafflepress_builder_capability', 'edit_others_posts' );
  • app/giveaway.php line 55
    apply_filters( 'rafflepress_create_giveaway_capability', 'edit_others_posts' );
  • app/classic-editor.php line 17
    apply_filters( 'rafflepress_display_media_button', is_admin(), $editor_id );
  • app/routes.php line 125
    apply_filters( 'rafflepress_top_level_menu_postion', 58 );

Generated from Giveaways and Contests by RafflePress's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.

Can't find the right hook?

We can build the customisation for you. Describe what you need: