Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author DBAR Productions

    (@dbar-productions)

    The default should be “Item you are bringing” on the public side when somebody signs up for something that needs item details. I’m not sure where you are seeing “what dish are you bringing for lunch?” I searched through my code for that phrase, and it doesn’t exist.

    There are two ways you can change the text without having to edit the code.

    1. You can use some sort of simple translation plugin that allows you to create custom translation files for text strings, and use that to change any text that appears on the screen.

    2. I have already built-in filter hooks for most text that appears on the screen. You can scan through the code to see those, but almost all public side text strings use a single filter hook which is ‘pta_sus_public_output’ . That hook passes three variables: the first is the text string itself, the second is an identifier for each particular string, and the third is any variables that are printed in the text string. For that particular one, the identifier is ‘item_details_label’ . If you want to modify it, or any other string, you just need to put the following in your theme’s function.php file:

    function pta_modify_output( $text, $id='', $variable='' ) {
    		if ( 'item_details_label' == $id ) {
    			$text = 'YOUR NEW TEXT GOES HERE';
    		}
    		return $text;
    	}
    add_filter('pta_sus_public_output', 'pta_modify_output', 10, 3);

    At this time, there is no way to make that text say something different for each sheet or task, as that would require a bit of additional code to specify the text for each task you enter when creating a sheet, and then saving that text string in the database for each task that is created. It was not something our PTA needed when I created the plugin. If I get enough requests for this kind of added functionality, I could put it into a future release.

    Plugin Author DBAR Productions

    (@dbar-productions)

    A new extension has been added to my plugins site to allow you to easily modify any text the plugin generates on the public side.

    Check out the PTA Volunteer Sign-Up Sheets Customizer here:
    https://stephensherrardplugins.com/plugins/pta-volunteer-sign-up-sheets-customizer/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change details needed’ is closed to new replies.