FakerPress 0.10.2 has 11 actions and 57 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.
// Run your own code when FakerPress fires an action
add_action( 'fakerpress_template_after_include', function( $file, $name, $object ) {
// Your code runs here.
}, 10, 3 );
// Change a value FakerPress is about to use
add_filter( 'fakerpress_asset_enqueue', function( $enqueue, $asset ) {
// Change $enqueue here.
return $enqueue;
}, 10, 2 );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
-
fakerpress_asset_enqueue
filter/** * Allows developers to hook-in and prevent an asset from been loaded. */ apply_filters( 'fakerpress_asset_enqueue', $enqueue, $asset ); -
/** * Allows developers to hook-in and prevent an asset from been loaded */ apply_filters( "fakerpress_asset_enqueue_{$asset->slug}", $enqueue, $asset ); -
/** * Filter an Asset loading variables. */ apply_filters( 'fakerpress_asset_pre_register', $asset ); -
/** * Filters the resource URL */ apply_filters( 'fakerpress_asset_resource_url', $url, $resource, $asset ); -
fakerpress_asset_version
filter/** * Filter to change version number on assets. */ apply_filters( 'fakerpress_asset_version', $asset->version, $asset ); -
fakerpress_is_truthy_strings
filter/** * Provides an opportunity to modify strings that will be deemed to evaluate to * true. */ apply_filters( 'fakerpress_is_truthy_strings', [ '1', 'enable', 'enabled', 'on', 'y', 'yes', 'true', ] ); -
/** * Filter the list of REST endpoint classes to load. */ apply_filters( 'fakerpress_rest_endpoint_classes', [ Endpoints\Documentation::class, Endpoints\Posts::class, Endpoints\Users::class, Endpoints\Terms::class, Endpoints\Comments::class, Endpoints\Attachments::class, ] ); -
/** * Fires an Action after including the template file */ do_action( 'fakerpress_template_after_include', $file, $name, $this ); -
/** * Fires an Action for a given template name after including the template file */ do_action( "fakerpress_template_after_include:{$hook_name}", $file, $name, $this ); -
/** * Fires an Action before including the template file */ do_action( 'fakerpress_template_before_include', $file, $name, $this ); -
/** * Fires an Action for a given template name before including the template file */ do_action( "fakerpress_template_before_include:{$hook_name}", $file, $name, $this ); -
fakerpress_template_context
filter/** * Allows filtering the Local context */ apply_filters( 'fakerpress_template_context', $context, $file, $name, $this ); -
/** * Allows filtering the the getting of Context variables, also short circuiting * Following the same structure as WP Core */ apply_filters( 'fakerpress_template_context_get', null, $index, $default, $is_local, $this ); -
fakerpress_template_file
filter/** * A more Specific Filter that will include the template name */ apply_filters( 'fakerpress_template_file', $file, $name, $this ); -
fakerpress_template_html
filter/** * Allow users to filter the final HTML */ apply_filters( 'fakerpress_template_html', $html, $file, $name, $this ); -
/** * Allow users to filter the final HTML by the name */ apply_filters( "fakerpress_template_html:{$hook_name}", $html, $file, $name, $this ); -
/** * Allows filtering of the list of folders in which we will look for the * template given. */ apply_filters( 'fakerpress_template_path_list', $folders, $this ); -
/** * Allows filtering of the base path for templates */ apply_filters( 'fakerpress_template_plugin_path', $path, $this ); -
/** * Allows filtering of the base path for templates */ apply_filters( 'fakerpress_template_public_namespace', $namespace, $this ); -
/** * Allows filtering of the base path for templates */ apply_filters( 'fakerpress_template_public_path', $path, $this ); -
fakerpress.admin.title_base
filter/** * Allows the modification of the base title for FakerPress pages. */ apply_filters( 'fakerpress.admin.title_base', __( '%s on FakerPress', 'fakerpress' ) ); -
/** * Allow third-party hooking of the admin view request level. */ do_action( "fakerpress.admin.view.{$slug}.request", $view ); -
/** * Allow third-party hooking of the admin view request level. */ do_action( 'fakerpress.admin.view.request', $view ); -
fakerpress.admin.views
filter/** * Allows the filtering of the FakerPress available modules. */ apply_filters( 'fakerpress.admin.views', $this->views ); -
fakerpress.fields
filter/** * Allows the filtering of the FakerPress available modules. */ apply_filters( 'fakerpress.fields', $default_types ); -
/** * Allows the hooking into before the saving of a module specifically. */ do_action( "fakerpress.module.{$slug}.after_save", $response, $reset, $this ); -
/** * Allows the hooking into before the saving of a module specifically. */ do_action( "fakerpress.module.{$slug}.before_save", $reset, $this ); -
/** * Allows the modification of the default reset data set for a specific module. */ apply_filters( "fakerpress.module.{$slug}.dependencies", $dependencies, $this ); -
/** * String holding the flag used to mark items from this module as FakerPress * created. */ apply_filters( "fakerpress.module.{$slug}.flag", $flag, self::class ); -
/** * Allows the modification of the default reset data set for a specific module. */ apply_filters( "fakerpress.module.{$slug}.provider_class", $provider, $this ); -
/** * Allows the modification of the default reset data set for a specific module. */ apply_filters( "fakerpress.module.{$slug}.reset_data", $data, $this ); -
/** * Allows the modification of the response for a specific module. */ apply_filters( "fakerpress.module.{$slug}.save", $response, $data, $reset, $this ); -
fakerpress.module.after_save
action/** * Allows the hooking into before the saving of a module. */ do_action( 'fakerpress.module.after_save', $response, $reset, $this ); -
/** * Allows filtering of the attachment download_url timeout, which is here just * to prevent fakerpress timing out. */ apply_filters( 'fakerpress.module.attachment.download_url_timeout', 10, $url, $post_parent_id ); -
/** * Allows the hooking into before the saving of a module. */ do_action( 'fakerpress.module.before_save', $reset, $this ); -
/** * Allows the modification of the default provider class used. */ apply_filters( 'fakerpress.module.dependencies', $dependencies, $this ); -
fakerpress.module.flag
filter/** * String holding the flag used to mark items from this module as FakerPress * created. */ apply_filters( 'fakerpress.module.flag', $flag, self::class ); -
/** * Allows us to prevent `_encloseme` and `_pingme` meta when generating Posts */ apply_filters( 'fakerpress.module.generate.prevent_enclose_ping_meta', true ); -
/** * Allow filtering for the Value of a specific meta value based on it's key */ apply_filters( "fakerpress.module.meta.{$this->data['meta_key']}.value", $this->data['meta_value'], $type, $this ); -
fakerpress.module.meta.value
filter/** * Allow filtering for the value for a Meta */ apply_filters( 'fakerpress.module.meta.value', $this->data['meta_value'], $this->data['meta_key'], $type, $this ); -
/** * Allows the modification of the default provider class used. */ apply_filters( 'fakerpress.module.provider_class', $provider, $this ); -
fakerpress.module.reset_data
filter/** * Allows the modification of the default reset data set. */ apply_filters( 'fakerpress.module.reset_data', [], $this ); -
fakerpress.module.save
filter/** * Allows the modification of the response for modules. */ apply_filters( 'fakerpress.module.save', $response, $data, $reset, $this ); -
fakerpress.modules
filter/** * Allows the filtering of the FakerPress available modules. */ apply_filters( 'fakerpress.modules', $this->modules ); -
fakerpress.plugin_loaded
action/** * Triggers an action for loading of functionality. */ do_action( 'fakerpress.plugin_loaded' ); -
/** * Filters the default meta rules pre-filled in the post generator for a post * type. */ apply_filters( 'fakerpress.posts.default_meta', $default_meta, $pt->name ); -
/** * Filters the default taxonomy rules pre-filled in the post generator. */ apply_filters( 'fakerpress.posts.default_taxonomy', $default_taxonomy ); -
apply_filters( 'fakerpress.messages.allowed_html', [] ); -
apply_filters( "{self::plugin}/fields/container", $container, $field ); -
apply_filters( "{self::plugin}/fields/container-{$field->_type}", $container, $field ); -
{self::plugin}/fields/field
filterapply_filters( "{self::plugin}/fields/field", $field, $container ); -
apply_filters( "{self::plugin}/fields/field-{$field->_type}", $field, $container ); -
apply_filters( "{self::plugin}/fields/field-actions", $html, $container ); -
apply_filters( "{self::plugin}/fields/field-description", $html, $container ); -
apply_filters( "{self::plugin}/fields/field-end_container", $html, $container ); -
apply_filters( "{self::plugin}/fields/field-end_table", $html, $container ); -
apply_filters( "{self::plugin}/fields/field-end_wrap", $html, $container ); -
apply_filters( "{self::plugin}/fields/field-label", $html, $container ); -
apply_filters( "{self::plugin}/fields/field-output-{$this->type}", $field, $this ); -
apply_filters( "{self::plugin}/fields/field-start_container", $html, $container ); -
apply_filters( "{self::plugin}/fields/field-start_table", $html, $container ); -
apply_filters( "{self::plugin}/fields/field-start_wrap", $html, $container ); -
apply_filters( "{self::plugin}/fields/meta_types", $types ); -
apply_filters( "{self::plugin}/fields/valid_types", self::$valid_types ); -
apply_filters( "fakerpress.module.{$slug}.amount_allowed", 15, $this ); -
apply_filters( 'fakerpress/date.get_intervals', [ [ 'id' => 'today', 'text' => esc_attr__( 'Today', 'fakerpress' ), 'min' => Chronos::today()->toDateString(), 'max' => Chronos::today()->toDateString(), ], [ 'id' => 'yesterday', 'text' => esc_attr__( 'Yesterday', 'fakerpress' ), 'min' => Chronos::yesterday()->toDateString(), 'max' => Chronos::yesterday()->toDateString(), ], [ 'id' => 'tomorrow', 'text' => esc_attr__( 'Tomorrow', 'fakerpress' ... ); -
apply_filters( 'fakerpress/provider/WP_Post/tax_input.ranges', [ 'category' => [ 1, 3 ], 'post_tag' => [ 0, 15 ], '__default' => [ 0, 3 ], ] ); -
apply_filters( 'fakerpress/provider/WP_Post/tax_input.rates', [ 'category' => 50, 'post_tag' => 45, '__default' => 35, ] );
Generated from FakerPress'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: