This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * 1. Add action Hook before Insert/update CCT, set 'validate-cct' as hook name - https://i.imgur.com/48wcTA4.png | |
| * 2. Replace 'tournaments' with your actual CCT slug | |
| * 3. Replace 'name' with actual parameters to find similar items | |
| */ | |
| add_filter( 'jet-form-builder/custom-filter/validate-cct', function( $result, $request, $action ) { | |
| $cct_slug = 'tournaments'; | |
| $cct = \Jet_Engine\Modules\Custom_Content_Types\Module::instance()->manager->get_content_types( $cct_slug ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Custom callback example | |
| * | |
| * @param string $column Column name | |
| * @param int $post_id Post ID | |
| * @return string | |
| */ | |
| function jet_admin_column_callback_example( $column, $post_id ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Start Bad Bot Prevention | |
| <IfModule mod_setenvif.c> | |
| # SetEnvIfNoCase User-Agent ^$ bad_bot | |
| SetEnvIfNoCase User-Agent "^12soso.*" bad_bot | |
| SetEnvIfNoCase User-Agent "^192.comAgent.*" bad_bot | |
| SetEnvIfNoCase User-Agent "^1Noonbot.*" bad_bot | |
| SetEnvIfNoCase User-Agent "^1on1searchBot.*" bad_bot | |
| SetEnvIfNoCase User-Agent "^3D_SEARCH.*" bad_bot | |
| SetEnvIfNoCase User-Agent "^3DE_SEARCH2.*" bad_bot | |
| SetEnvIfNoCase User-Agent "^3GSE.*" bad_bot |
