Advertise with Trentimes Create an official Advertisement page for your item or brand. Title * YesNo YesNo YesNo YesNo YesNo General General Name * (String) A unique name that identifies the block (without namespace). Note: A block name can only contain lowercase alphanumeric characters and dashes, and must begin with a letter. Description (String) (Optional) This is a short description for your block. Category (String) Blocks are grouped into categories to help users browse and discover them. The core provided categories are [ common | formatting | layout | widgets | embed ]. Plugins and Themes can also register custom block categories. Keywords (Array) (Optional) An array of search terms to help user discover the block while searching. One line for each keyword. ie: quote mention cite Post types (Array) (Optional) An array of post types to restrict this block type to. Post (post) Page Media HTML Template Post (erforms) Post (erforms_submission) Post (erforms_plan) Pod Template Form (admin_form) Landing Page Template Custom Code Recipe Automator Trigger Automator Action Automator Closure Form (wpdiscuz_form) List Badge Email Notification Rank buyCred Pending Payment Post List Design Ad Plan Schema Order Product Font Icon Set Pod Pod Group Pod Field Ad Inventory Application Campaign Course Doc News Serie Social Post Subscriber Task Update Mode (String) (Optional) The display mode for your block. Available settings are “auto”, “preview” and “edit”. Defaults to “preview”. auto: Preview is shown by default but changes to edit form when block is selected. preview: Preview is always shown. Edit form appears in sidebar when block is selected. edit: Edit form is always shown. Note. When in “preview” or “edit” modes, an icon will appear in the block toolbar to toggle between modes.PreviewAutoEdit Align (String) (Optional) The default block alignment. Available settings are “left”, “center”, “right”, “wide” and “full”. Defaults to an empty string.NoneLeftCenterRightWideFull Icon Icon Icon Type Simple: Specify a Dashicons class or SVG path Colors: Specify colors & Dashicons classSimpleColors Icon (String) (Optional) An icon property can be specified to make it easier to identify a block. These can be any of WordPress’ Dashicons, or a custom svg element. Icon background Specifying a background color to appear with the icon e.g.: in the inserter. Icon foreground Specifying a color for the icon (optional: if not set, a readable color will be automatically defined) Icon src Specifying a dashicon for the block Render Render Render template (String) The path to a template file used to render the block HTML. This can either be a relative path to a file within the active theme or a full path to any file. Render callback (Callable) (Optional) Instead of providing a render_template, a callback function name may be specified to output the block’s HTML. Enqueue Enqueue Enqueue style (String) (Optional) The url to a .css file to be enqueued whenever your block is displayed (front-end and back-end). Enqueue script (String) (Optional) The url to a .js file to be enqueued whenever your block is displayed (front-end and back-end). Enqueue assets (Callable) (Optional) A callback function that runs whenever your block is displayed (front-end and back-end) and enqueues scripts and/or styles. Supports Supports Align This property adds block controls which allow the user to change the block’s alignment. Defaults to true. Set to false to hide the alignment toolbar. Set to an array of specific alignment names to customize the toolbar. TrueFalse Align arguments Set to an array of specific alignment names to customize the toolbar. One line for each name. ie: left right full Anchor TrueFalse Inner Block Enable inner block feature. Defaults to false. TrueFalse Align Content Set the "xy" position of content using a 3×3 matrix grid. Defaults to false. TrueFalse Align content Specifies the default attribute value. Mode This property allows the user to toggle between edit and preview modes via a button. Defaults to true. TrueFalse Multiple This property allows the block to be added multiple times. Defaults to true. TrueFalse General General Form name * The unique form slug Field groups Render & map fields of the following field groupsBuzzCampaignChannel FieldsDocumentationFEED ENGINE VARGlobal VariablesInventoryItemNichePostSequenceSocial PostSubscribers DataUPDATEUser PersonaUsersgoalsimgsingle Actions Add actions on form submissionNo field groups are currently mapped Click the "Add action" button below to start creating your layout 0 Custom action Action Action Action name *Set a unique action slug Code Code Add custom validation on submission You may use the following hooks: add_action('acfe/form/validation/my-custom-action', 'my_form_custom_action_validation', 10, 3);add_action('acfe/form/validation/my-custom-action/form=my_form', 'my_form_custom_action_validation', 10, 3); /** * @array $form The form settings * @int $post_id Current post ID * @string $alias Action alias (Empty for custom actions) */add_action('acfe/form/validation/my-custom-action', 'my_form_custom_action_validation', 10, 3);function my_form_custom_action_validation($form, $post_id, $alias){ /** * Get the form input value named 'my_field' * This is the value entered by the user during the form submission */ $my_field = get_field('my_field'); $my_field_unformatted = get_field('my_field', false, false); if($my_field === 'Hello'){ // Add validation error acfe_add_validation_error('my_field', 'Hello is not allowed'); } /** * Get the field value 'my_field' from the post ID 145 */ $post_my_field = get_field('my_field', 145); $post_my_field_unformatted = get_field('my_field', 145, false); } Add custom action on submission You may use the following hooks: add_action('acfe/form/submit/my-custom-action', 'my_form_custom_action', 10, 2);add_action('acfe/form/submit/my-custom-action/form=my_form', 'my_form_custom_action', 10, 2); /** * @array $form The form settings * @int $post_id Current post ID */add_action('acfe/form/submit/my-custom-action', 'my_form_custom_action', 10, 2);function my_form_custom_action($form, $post_id){ /** * Get the value from the form input named 'my_field' * This is the value entered by the user during the form submission */ $my_field = get_field('my_field'); /** * Get the field value 'my_field' from the post ID 145 */ $my_post_field = get_field('my_field', 145); /** * Set a custom query var * The value '145' can be retrieved in an another action using the template tag: * {query_var:my_tag} */ set_query_var('my_tag', 145); /** * Set a custom query var array * The values can be retrieved in an another action using the template tags: * {query_var:my_tag:post_id} {query_var:my_tag:user} */ set_query_var('my_tag', array( 'post_id' => 145, 'user' => 12, ); } 0 Email action Action Action Action name(Optional) Target this action using hooks. Email Email From To Reply to Cc Bcc Subject ContentFields values may be included using {field:field_key} {field:title}. All fields may be included using {fields}.See "Cheatsheet" tab for advanced usage. Click to initialize TinyMCE Attachments Attachments Dynamic files File Delete file 1 YesNo Delete once submitted Add file Static files File 1 File name: File size: 0% No file selected Add File Add file Code Code Change email argumentsAlter the wp_mail() arguments before it is sent You may use the following hooks: add_filter('acfe/form/submit/email_args', 'my_form_email_args', 10, 3);add_filter('acfe/form/submit/email_args/form=my_form', 'my_form_email_args', 10, 3);add_filter('acfe/form/submit/email_args/action=my-email-action', 'my_form_email_args', 10, 3); /* * @array $args The generated email arguments * @array $form The form settings * @string $action The action alias name */add_filter('acfe/form/submit/email_args/form=my_form', 'my_form_email_args', 10, 4);function my_form_email_args($args, $form, $action){ /* * $args = array( * 'from' => 'email@domain.com', * 'reply_to' => 'email@domain.com', * 'to' => 'email@domain.com', * 'cc' => 'email@domain.com', * 'bcc' => 'email@domain.com', * 'subject' => 'Subject', * 'content' => 'Content', * 'headers' => array( * 'From: email@domain.com', * 'Reply-to: email@domain.com', * 'Cc: email@domain.com', * 'Bcc: email@domain.com', * 'Content-Type: text/html', * 'charset=UTF-8' * ), * 'attachments' => array( * '/path/to/file.jpg' * ) * ); */ /* * Get the form input value named 'my_field' * This is the value entered by the user during the form submission */ $my_field = get_field('my_field'); if($my_field === 'Company'){ // Change Recipient $args['to'] = 'new@domain.com'; } /* * Get previous Post Action output */ $prev_post_action = acfe_form_get_action('post'); if(!empty($prev_post_action)){ if($prev_post_action['post_title'] === 'Company'){ // Change Recipient $args['to'] = 'new@domain.com'; } } // Do not send Email // return false; return $args; } Add custom action when e-mail is sentThis action allows you to hook in after the e-mail has been sent You may use the following hooks: add_action('acfe/form/submit/email', 'my_form_email_send', 10, 3);add_action('acfe/form/submit/email/form=my_form', 'my_form_email_send', 10, 3);add_action('acfe/form/submit/email/action=my-email-action', 'my_form_email_send', 10, 3); /* * @array $args The generated email arguments * @array $form The form settings * @string $action The action alias name */add_action('acfe/form/submit/email/form=my_form', 'my_form_email_send', 10, 3);function my_form_email_send($args, $form, $action){ /* * Get the form input value named 'my_field' * This is the value entered by the user during the form submission */ $my_field = get_field('my_field'); if($my_field === 'Company'){ // do_something(); } /* * Get previous Post Action output */ $prev_post_action = acfe_form_get_action('post'); if(!empty($prev_post_action)){ if($prev_post_action['post_title'] === 'Company'){ // do_something(); } } } 0 Option action Action Action Action name(Optional) Target this action using hooks. Save Save Target Load Load Load ValuesFill inputs with values YesNo Source Code Code Change values sourceAlter the Option Post ID where meta values are loaded from You may use the following hooks: add_filter('acfe/form/load/option_id', 'my_form_option_values_source', 10, 3);add_filter('acfe/form/load/option_id/form=my_form', 'my_form_option_values_source', 10, 3);add_filter('acfe/form/load/option_id/action=my-post-action', 'my_form_option_values_source', 10, 3); /* * @int $option_id Option Post ID used as source * @array $form The form settings * @string $action The action alias name */add_filter('acfe/form/load/option_id/form=my_form', 'my_form_option_values_source', 10, 3);function my_form_option_values_source($option_id, $form, $action){ /* * Retrieve Form Setting */ if($form['custom_key'] === 'custom_value'){ // Force to load values from the Option Post ID 'my_options' $option_id = 'my_options'; } return $option_id; } Change Options Post IDAlter the Options Post ID before database insert/update You may use the following hooks: add_filter('acfe/form/submit/option_id', 'my_form_option_id_save', 10, 3);add_filter('acfe/form/submit/option_id/form=my_form', 'my_form_option_id_save', 10, 3);add_filter('acfe/form/submit/option_id/action=my-post-action', 'my_form_option_id_save', 10, 3); /* * @int $option_id Targeted Option Post ID * @array $form The form settings * @string $action The action alias name */add_filter('acfe/form/submit/option_id/form=my_form', 'my_form_option_id_save', 10, 3);function my_form_option_id_save($option_id, $form, $action){ /* * Get the form input value named 'my_field' * This is the value entered by the user during the form submission */ $my_field = get_field('my_field'); if($my_field === 'Company'){ // Change Option Post ID $option_id = 'my_options'; } /* * Get previous Post Action output */ $prev_post_action = acfe_form_get_action('post'); if(!empty($prev_post_action)){ if($prev_post_action['post_title'] === 'Company'){ // Change Option Post ID $option_id = 'my_options'; } } // Do not save the Options // return false; return $option_id; } Add custom action on option saveThis action allows you to hook in before or after the meta data have been saved You may use the following hooks: add_action('acfe/form/submit/option', 'my_form_option_save', 10, 3);add_action('acfe/form/submit/option/form=my_form', 'my_form_option_save', 10, 3);add_action('acfe/form/submit/option/action=my-post-action', 'my_form_option_save', 10, 3); /* * @int $option_id Targeted Option Post ID * @array $form The form settings * @string $action The action alias name * * Note: At this point the options & meta fields are already saved in the database */add_action('acfe/form/submit/option/form=my_form', 'my_form_option_save', 10, 3);function my_form_option_save($option_id, $form, $action){ /* * Get the form input value named 'my_field' * This is the value entered by the user during the form submission */ $my_field = get_field('my_field'); if($my_field === 'Company'){ // do_something(); } /* * Get previous Post Action output */ $prev_post_action = acfe_form_get_action('post'); if(!empty($prev_post_action)){ if($prev_post_action['post_title'] === 'Company'){ // do_something(); } } } 0 Post action Action Action Action Create postUpdate post Action name(Optional) Target this action using hooks. Save Save Target Current: PostCurrent: Post Parent Post type - Default -Post (post)PageMediaHTML TemplatePost (erforms)Post (erforms_submission)Post (erforms_plan)Pod TemplateForm (admin_form)Landing PageTemplateCustom CodeRecipeAutomator TriggerAutomator ActionAutomator ClosureForm (wpdiscuz_form)ListBadgeEmail NotificationRankbuyCred Pending PaymentPost ListDesignAdPlanSchemaOrderProductFontIcon SetPodPod GroupPod FieldAd InventoryApplicationCampaignCourseDocNewsSerieSocial PostSubscriberTaskUpdate Post type Post status - Default -Published (publish)Scheduled (future)Draft (draft)Pending (pending)Private (private)Trash (trash)auto-draft (auto-draft)inherit (inherit)Pending (request-pending)Confirmed (request-confirmed)Failed (request-failed)Completed (request-completed)Expired (advanced_ads_expired)Disabled (acf-disabled) Post status Post title - Default -Generated ID Post title Post slug - Default -Generated ID Post slug Post content - Default -WYSIWYG editor Click to initialize TinyMCE Post content Post author - Default -Current UserCurrent Post Author Post author Post parent - Default -Current: PostCurrent: Post Parent Post parent Post terms AgricultureArt & DIYAwka Real EstateBanks, Savings & LoansBeauty & CosmeticsBooks, Magazines & NewspapersBuilding Materials & EquipmentBusiness & InvestmentsChristian MaterialsComputer SoftwaresCryptocurrencyDating and RelationshipDoctors & Other Health ProfessionalsEducationElectronicsEnvironmentEventsFinanceFitness & BodybuildingFood & BeverageForex TradingFoundations, Philanthropists & Non-ProfitsGiftsGistGraphicsHair & WigsHealth & WellnessInformation TechnologyInternetIslamJobs & EmploymentKids & ParentingLawyersLife HacksMarketing and CopywritingMen's FashionMental HealthMusic ProductionNewsParentingPersonal DevelopmentProduct ReviewsPsychologyReal EstateRetail SalesScience & NatureTechnologyTextilesTransportationTravelVisual ArtWA SALES TOOLSWeddingsWomen's Fashion#2020#9jafoodie#banga#bangasoup#beautiful#beauty#buns#cake#care#cheflu#coffee#cooking#corona#coronavirus#dalgona#dalgonacoffee#delicious#dessert#diet#explore#facebook#fritata#glow#glowing#healthy#instagram#jobrecruitment##loveyourself#mayonnaise#mercychinwo##motionsickness#natural#Npower##Obaseki##Ogbeide-Ihama’s hurdle##organic#papaya#pastries#plantainfritata#quarantine#recipe#reflection #inspiration #success#salad#self-defence##skin#skincare#smoothskin#sophomorealbum##stayhome#staysafe##travelling#yummy3d designs5G9 Reasons Why Many Educated People Are Poor9MobileA.IAccess BankaccidentaccountAccountingachievementsAcme Diagnostic Laboratories Set To RecruitactionactoractorsactressadenikeAdesua Etomiadeyemiadministrative assistanceAdudamadviceAffairsAffiliate Marketingafreeunionafricaafricanagricultureagro parkAirtelAlan & Grant RecruitmentalbumAlgeriaamazonanalyticalAnambraAnambraDecides2017andelaANewSongAnita Sadoh's ChannelAnna AndzutsiapcApolloapostleAppleapplicationappsArchicadArchitect's guidearchitectureArchitecture persentation guideareaarmyarrestArtificial IntelligenceAshdenAsset BuildingASUUASUU Strikeasuu strike updateAtikuattractionAuditingaustralianautoAutomationAviationAviation NewsawardAwardsAwka FactsAwka FestivalsBAAD2017BAADestBaker Hughes RecruitmentbanditsbankBank GistBank NewsBankingbanksbaptismbasicbayelsaBB NigeriabbericabbliveblogBBNaijabbnaija2020bbnaija2020lockdownbbnaijalockdownbbnaijareunionBBNaijiaBBNaijialockdown2020BBNajiabbnengibbreunionBebecome betterbeinformedbellanaijabenuebest universitiesBEYGOODHOUSTONBeyonceBiafrabidenBig Brother Naija season 5bigbrothernigeriabilBill GatesbillionbillionairebiologybirthbitcoinBlackDontCrackblaqbonezblessingBLWbokoBoko HaramBook Keepingbooksbornobrain powerbrandbrandingbrightobrowsingBU Power Limited Management Trainee Programme 2019BuhariStopTheBurningOfINECOfficesburataiBusinessbusiness cardbusiness card templateBusiness DevelopmentBusiness FundingBusiness GrowthBusiness Guidebusiness ideasbusiness ideas in UKBusiness IncubatorsBusiness Managementbusiness modelBusiness name registrationbusiness opportunitiesbusiness strategyBusiness StructureBusiness taxesbusiness tipsbusiness toolsbusinessesbusinessideasbuy and sellbuying and selling bitcoincacCanadacandidatescapitalCapital MarketCareercareer conversationcareer guidecash flowcaughtCBNCEBRCeleb dateceleb datescelebritiesCelebrityCelebrity NewscentrecentresChampions LeaguechangechangeschargeCharly boycharmcharmingChatbotschecking accountChelseachesschiefchinachinesechiwetaluChris NgigeChrist EmbassychristianchristmasChurchclarityclassiccodingCogitationCollaboCollectioncomfortzonecommercecommunicationcompanyCompany GrossingCompany NewsConceptscontentcontent marketingcoporateCountdowncountryCovenantVictoryCovid-19Covid19COVID19NigeriacowrywiseCreamcreditCrimecrushcryptocrypto tab browserCryptocurrencyCureCurrent Job Vacancy At Polysonic Nigeria LimitedcustodialcustomersCybercrimedailyDaily Skin Care RoutineDangoteDatingDating gistdaughterDavidoDBanjdebutdelhiDepressiondeputyDesigndesignersdesiredestinydetectDeveloperdiamonddiamond bankdigital marketingDigital WorlddikehdisabilityDisciplineDisney NewsDIYDocumentingDocumentsdogsdollarsdomesticDonald TrumpdorathybbnaijaDrakeDRCDreamdrilldrooledDrugsDufil Prima Foods PlcEat N Go Limited Is Currently RecruitingebolaecommerceeconomicsEconomyEdTecheducated peopleEducationEFCCegyptElectricityelectronicsEmail MarketingemergedEmotionsemploymentemploymentsEndSARSEntertainmententrepreneurEntrepreneursentrepreneurshipEthereumEthiopiaetikoevans newsEventsexcogitationexpansionexpertsf7f7f7Face Care RoutineFacebook BoycottfacilitatedfactsFactsFirstfamilyfarmingFashionFastEntireCollectionfatfearsFeaturedfebruaryFederal Nigeria Society for the Blind Is RecruitingFeefeedlyFeelingsfemalefffFGfidelity bankfilmFinanceFinancial Advicefinancial changesFinancial freedomFintechFintech CareersfirefliesFirst BankFirst bank 5 digit pinFirst bank mobile transfer limitfirst impressionFitbitFoodFood GistFoodsForbesforgivingForgot first bank transfer pinFormalformalletterFormationformidableFountainOfLifefreelancefreethesheeplefulaniFulani HerdsmenfundingFwgabbigameGamesgavegendergeneratedgenitalGetting Customersgetting what you wantGhanagirlGistgivingGloGlowing SkingoalsGobeGood NewsGoogleGoogle My Businessgoogle rankingGOTGOTNIgovernmentgovernmentsgovernorGrammyNominationsGRAMMYsGrantgrantsgreatnessGroomingGrossinggroupGrowthguideguide in cash flowGuidesguildguiltygunmenhHabitshabits to stop concerning moneyHallelujahChallengeHamiltonHappinessharamhardhardshipHashtagsHealthhelphelpingherdsmenhiringhistoryHopehospitalhospitalizedhot newsHotels in Awkahow tohow to boost self confidenceHow to create 5 digit pin for first bankhow to make cashhow to make moneyHow To Make/Get Money – The Quite TimeHow to register first bank transfer codeHow to transfer money from first bankHult PrizeHushpuppiibom airlineICAP. recruitmentideasIfKateFitUFitIFRSImo International Health SystemsImo State Universal Basic Education Board (IMSUBEB) Recruitment 2019/2020 – How to ApplyImport and ExportIncomeincomeideasincrease trafficIndependence57indiaindividualsIndustryinecINEC, 2019 ElectionsinfluencersinfobipinjuryInsecurity and corruptioninsightsInspayaInspirationinspirationalinspireinstabloggerinsuranceinteractiveinternationalInternetInterviewInterviewsinvestinvestinginvestmentinvestorinvestorsIQVIAISISITitalyitslayconitspraisejaejaladejanejannikJapanjeffbezosjesusjillJim Iykejobjob vacancyJobsjobs in lagosJoinUsJollofFestivaljoshuajubrinJustin beiberka3nakaishaKanoKarisa Consults LimitedkenyakiddwayaKim KardashianKingsley Ifenjika's ChannelKingsley's Channelkirukaahkiss danielknowknowledgeknownKogikongKoreakwaraladiesLagosLagos Newslanrelantarn bookslatestlatest jobslayconlayconbbnaijaleaderleadershipLearninglegallegal problemslegal problems of small businesseslessonslibra financelibra reliance limitedLifelife insuranceLife StorylifestylelightningliloLimeWood Hotel and suitesListListsLiteramed Publication Nigeria LimitedLiverpoollivingLoanloan apps in NigeriaLoan ProgramsloanslocationsloveLoveworldlstlucid dreamlucyMake MoneyMake money for beginnersmakemoneymaking moneymaking money with smart phoneManmanage moneymark zukerbergMarketmarketingmarketing planmarketing strategymarriagematchmathmaximumMBGN2017mc_embed_signupmedalmeetmelaniamemoirmenamentalMental HealthmentalhealthmeraiahMercy Chinwomercy corpsMercy Corps Recruitment jobsMercyEkeMercyEkeIsBusymercylamboMessimetaverseMImicrosoftmikemillionmillionairemillitimemillitimeinspayamindmind developmentmindsetminimum wagemissuniverseMobilemoghaluMoneymoney decisionsMoney Making IdeasMOODmorningMortgagemothermotheranddaughterMOTIVATE SELFMotivationMotivationalmovie gistMSMEsMTNMuhammadu BuhariMultichoicemuscleMUSICMusic NewsMusic VideoMusiciansmutilationmyselfMyTestimonynationalnatureNDLEAneedNenginengiofficialNeoneotribeNetflixnetworknew jobsNewsNeymarNGCAREERSNicki Minajnierian armyNigeriaNigeria newsnigeriannigerian airforceNigerian Millitarynigerian newsNigerian NewspaperNigeriansnigeriarealitytvshowsnkechiNLCNLPGANnamdi KanunnpcNNUnoblisnobradaynollywoodNorth KoreaNYFWNYSCoapobasanjoobjodogwuozoOgbeideOlamideolowoniyiOMGOMO BillsonlineOnline BusinessesOnlineServiceonyiopenoperating modeloperativesOpinionOpportunitiesopportunityorthodoxoyetundeozoP SquareP&GpackagespackedpandemicpaparazziParentingpartonpassive incomepayment system for dollarspaymentsPDPpeacepeoplePeoplesVotePersonalpersonaldevelopmentpersonalitypersonspeter obiPHCNPhonesphotophotographyPhysical HealthpicsofthedayPiggyVestpinellasPinterestPizzaPlaces in AwkaPlanplantbasedPlantsplatformpleadedPMBpoempolicePolice GistPoliticspolysonicpoorpositive phychologypostedPower & ElectricityPresidencypresidentialpressureprinceprinciplespriscillaprobeProductproductivityProfesionalismprogrammingPSBPSGpsquarePsychologypurposeQuestionsquizquoteofthedayRankingRaperapingRCCGreadingrealestatereallyRealMadridrecruitmentredeemedRedGoldandGreenreductionreflectionRegTechRegTech companies. What is RegTechRegTech definitionRegtech landscapeRegTech vs FinTechregulatory technologyreinventrelationshiprelationship talksRelationshipsrelativescienceThereleaserelevantReligionremreportresignationRestaurant BusinessrichRihannaritualriver stateriversRiversStateRMLigaroadRochas OkorochaROCKETBOYSRuff n TumblerulesRunningRussia2018safetysaidsamsungsavescaleupsScandalschoolSchool GistSchoolsschwiznuggetssciencescience and TechnologySDIL Nigeria RecruitmentSEASONSsecretssecuritySelena Gomezselfself confidenceSelf DevelopmentSelf DiscoverySelf hateSelfDevelopmentSellselmanSenateSEOseplatSeplat Petroleum Development Company Plc Internship ProgrammesharesshieldShock NewsShockingShocking NewsshoesShoppingShopriteshowshyshynessside hustlesidehustleSimbaSimba Industries Limited RecruitmentSimisimplytachasinglesSkillSkill AcquisitionskillsSkin CareSkin Care ProductsSkin Care RegimenSkin Care RoutineSkin GoalsSkin TreatmentslaughteredSlayQueensleepingsmall businessessmallbusinesssmart phoneSMEDANSMEsSneak PeeksniffersniffingsocialSocial MediasokotosoludosolutionSolyberry's ChannelsourcesouthafricaspainSpecialSpoken Wordssponsored postSportsSpringfield collegiate school of Artsstaffstanbic ibtcStart UpStart UpsstartupStartup AcceleratorsStartup mentorshipStartupsstateStayWokeStoriesStorystrategiesStrikestudentStudentsStudents, Money, Ideas, Business Ideasstudy onlinestyleStyle LadiesStyle Tipssuccesssuccess tipssuccessstoriessudanSunSundayServicesuperSuper EaglessworeTalent. LifeTalentsTATtbtTearsTechTech Gisttech jobsTech Newstef 2019TeknoTelecomminicationsTelecommunicationstellingtennisTestimonyTezza Business Solutions Limited RecruitmenttezzerTFOLCThe BrainThe MindThe Music IndustryThe way forewordThefttheweddingThings That Ruins A First Impression InstantlyThreadtimeTiwa SavagetolanibajtontoTonto dikehTony Elumelu FoundationtoolTop 10top business IdeasTopictopsTradeWartrainedtrainingTransferTransfer NewsTravelTreatmentTrentimestrickyteetrikyteeTrue HappinesstrumptruthTSTVtundeednutTWICEASTALLTwittertypes of marketingUBAUEFAUKUnbreakableunderstanding regulatory technologyunilagunionunion bankUnited States VisaUniversitiesuniversity of calabaUpdatesUSUSAusersUSSD codevacancyveeVenture Capitalviral photosvisaWAECwahclasswapicwealthwebsitewedding gistWeddingsweekweightWeight ManagementwelfarewestWhat is the 5 digit pin for first bankWhatsAppwhereaboutswhitemoneyWHOwhy risk moneywifewikewinnerwisestWithChudeWizkidwomenWomen EmpowermentWork and injuryWork from Homework related injuryWorldWorld NewsWorldEconomyWorthwrestlingwrite-upwriterwritingwrotewtfXenophobiaYeahyearyearsyouYourselfyouthYouthsYouths Magazinezamfarazimbabwearchivecustom_gridfooterheaderlanding-pagelooppagepopupproductsectionsinglesingle-postwidget1TrenAppsBirthdaysComedyControversyEducativeMembership CardQuestion / QuizTouchingTrenspirationWowerComedyFunnyGingerMessageStorySupportUpdateEvent Post terms Load Load Load ValuesFill inputs with values YesNo Source Current: PostCurrent: Post Parent Post type - Default - Post status - Default - Post title - Default - Post slug - Default - Post content - Default - Post author - Default - Post parent - Default - Post terms - Default - Code Code Change values sourceAlter the post ID where meta values are loaded from You may use the following hooks: add_filter('acfe/form/load/post_id', 'my_form_post_values_source', 10, 3);add_filter('acfe/form/load/post_id/form=my_form', 'my_form_post_values_source', 10, 3);add_filter('acfe/form/load/post_id/action=my-post-action', 'my_form_post_values_source', 10, 3); /* * @int $post_id Post ID used as source * @array $form The form settings * @string $action The action alias name */add_filter('acfe/form/load/post_id/form=my_form', 'my_form_post_values_source', 10, 3);function my_form_post_values_source($post_id, $form, $action){ /* * Retrieve Form Setting */ if($form['custom_key'] === 'custom_value'){ // Force to load values from the Post ID 145 $post_id = 145; } return $post_id; } Change post argumentsAlter the post arguments before database insert/update You may use the following hooks: add_filter('acfe/form/submit/post_args', 'my_form_post_args', 10, 4);add_filter('acfe/form/submit/post_args/form=my_form', 'my_form_post_args', 10, 4);add_filter('acfe/form/submit/post_args/action=my-post-action', 'my_form_post_args', 10, 4); /* * @array $args The generated post arguments * @string $type Action type: 'insert_post' or 'update_post' * @array $form The form settings * @string $action The action alias name */add_filter('acfe/form/submit/post_args/form=my_form', 'my_form_post_args', 10, 4);function my_form_post_args($args, $type, $form, $action){ // Change Post Title if the Action Type is 'insert_post' if($type === 'insert_post'){ $args['post_title'] = 'My title'; } /* * Get the form input value named 'my_field' * This is the value entered by the user during the form submission */ $my_field = get_field('my_field'); if($my_field === 'Company'){ // Change Post Title $args['post_title'] = 'Company'; } /* * Get previous Post Action output */ $prev_post_action = acfe_form_get_action('post'); if(!empty($prev_post_action)){ if($prev_post_action['post_title'] === 'Company'){ // Change Post Title $args['post_title'] = 'Company'; } } // Do not save the Post // return false; return $args; } Add custom action on post saveThis action allows you to hook in before or after the meta data have been saved You may use the following hooks: add_action('acfe/form/submit/post', 'my_form_post_save', 10, 5);add_action('acfe/form/submit/post/form=my_form', 'my_form_post_save', 10, 5);add_action('acfe/form/submit/post/action=my-post-action', 'my_form_post_save', 10, 5); /* * @int $post_id The targeted post ID * @string $type Action type: 'insert_post' or 'update_post' * @array $args The generated post arguments * @array $form The form settings * @string $action The action alias name * * Note: At this point the post & meta fields are already saved in the database */add_action('acfe/form/submit/post/form=my_form', 'my_form_post_save', 10, 5);function my_form_post_save($post_id, $type, $args, $form, $action){ /* * Get the form input value named 'my_field' * This is the value entered by the user during the form submission */ $my_field = get_field('my_field'); if($my_field === 'Company'){ // do_something(); } /* * Get previous Post Action output */ $prev_post_action = acfe_form_get_action('post'); if(!empty($prev_post_action)){ if($prev_post_action['post_title'] === 'Company'){ // do_something(); } } } 0 Redirect action Action Action Action name(Optional) Target this action using hooks. Action URLThe URL to redirect to. See "Cheatsheet" tab for all available template tags. Code Code Prepare the actionStop the action execution if necessary You may use the following hooks: add_filter('acfe/form/prepare/redirect', 'my_form_redirect_prepare', 10, 4);add_filter('acfe/form/prepare/redirect/form=my_form', 'my_form_redirect_prepare', 10, 4);add_filter('acfe/form/prepare/redirect/action=my-redirect-action', 'my_form_redirect_prepare', 10, 4); /* * @bool $prepare Execute the action * @array $form The form settings * @int $post_id Current post ID * @string $action Action alias name */add_filter('acfe/form/prepare/redirect/form=my_form', 'my_form_redirect_prepare', 10, 4);function my_form_redirect_prepare($prepare, $form, $post_id, $action){ /* * Get the form input value named 'my_field' * This is the value entered by the user during the form submission */ $my_field = get_field('my_field'); if($my_field === 'Company'){ // Do not execute Redirect $prepare = false; } /* * Get previous Post Action output */ $prev_post_action = acfe_form_get_action('post'); if(!empty($prev_post_action)){ if($prev_post_action['post_title'] === 'Company'){ // Do not execute Redirect $prepare = false; } } return $prepare; } Change Redirect URL You may use the following hooks: add_filter('acfe/form/submit/redirect_url', 'my_form_redirect_url', 10, 3);add_filter('acfe/form/submit/redirect_url/form=my_form', 'my_form_redirect_url', 10, 3);add_filter('acfe/form/submit/redirect_url/action=my-redirect-action', 'my_form_redirect_url', 10, 3); /* * @bool $url Redirect URL * @array $form The form settings * @string $action Action alias name */add_filter('acfe/form/submit/redirect_url/form=my_form', 'my_form_redirect_url', 10, 3);function my_form_redirect_url($url, $form, $action){ /* * Get the form input value named 'my_field' * This is the value entered by the user during the form submission */ $my_field = get_field('my_field'); if($my_field === 'Company'){ // Change Redirect URL $url = home_url('thank-you'); } /* * Get previous Post Action output */ $prev_post_action = acfe_form_get_action('post'); if(!empty($prev_post_action)){ if($prev_post_action['post_title'] === 'Company'){ // Change Redirect URL $url = home_url('thank-you'); } } // Do not redirect // return false; return $url; } 0 Term action Action Action Action Create termUpdate term Action name(Optional) Target this action using hooks. Save Save Target Current: TermCurrent: Term Parent Name - Default - Name Slug - Default - Slug Taxonomy - Default -Category (category)TagFormatTypeCategory (elementor_library_category)Achievement TypesAd GroupRecipe categoryRecipe tagLabelFont TypeNews CategorySectionSocial CategorySocial TagUpdate CategoryUpdate TagRedirection Category Taxonomy Parent - Default -Current: TermCurrent: Term Parent Parent Description - Default -WYSIWYG Editor * Click to initialize TinyMCE Description Load Load Load ValuesFill inputs with values YesNo Source Current: TermCurrent: Term Parent Name - Default - Slug - Default - Taxonomy - Default - Parent - Default - Description - Default - Code Code Change values sourceAlter the term ID where meta values are loaded from You may use the following hooks: add_filter('acfe/form/load/term_id', 'my_form_term_values_source', 10, 3);add_filter('acfe/form/load/term_id/form=my_form', 'my_form_term_values_source', 10, 3);add_filter('acfe/form/load/term_id/action=my-term-action', 'my_form_term_values_source', 10, 3); /* * @int $term_id Term ID used as source * @array $form The form settings * @string $action The action alias name */add_filter('acfe/form/load/term_id/form=my_form', 'my_form_term_values_source', 10, 3);function my_form_term_values_source($term_id, $form, $action){ /* * Retrieve Form Setting */ if($form['custom_key'] === 'custom_value'){ // Force to load values from the Term ID 45 $term_id = 45; } return $term_id; } Change term argumentsAlter the term arguments before database insert/update You may use the following hooks: add_filter('acfe/form/submit/term_args', 'my_form_term_args', 10, 4);add_filter('acfe/form/submit/term_args/form=my_form', 'my_form_term_args', 10, 4);add_filter('acfe/form/submit/term_args/action=my-term-action', 'my_form_term_args', 10, 4); /* * @array $args The generated term arguments * @string $type Action type: 'insert_term' or 'update_term' * @array $form The form settings * @string $action The action alias name */add_filter('acfe/form/submit/term_args/form=my_form', 'my_form_term_args', 10, 4);function my_form_term_args($args, $type, $form, $action){ // Change Description if the Action Type is 'insert_term' if($type === 'insert_term'){ $args['description'] = 'My term description'; } /* * Get the form input value named 'my_field' * This is the value entered by the user during the form submission */ $my_field = get_field('my_field'); if($my_field === 'Company'){ // Change Description