' . ( $req ? '*' : '' ) . ''; $fields['email'] = '
' . ( $req ? '*' : '' ) . '
'; $fields['url'] = '
'; return $fields; } add_filter( 'comment_form_default_fields', 'agama_comment_form_fields' ); /** * Comment Form Defaults * * @since 1.2.4 */ function agama_comment_form_defaults( $defaults ) { global $current_user; $defaults['logged_in_as'] = '
' . sprintf( '%s %s. %s', __('Logged in as', 'agama'), admin_url( 'profile.php' ), $current_user->display_name, wp_logout_url( apply_filters( 'the_permalink', get_permalink( ) ) ), __('Log out of this account', 'agama'), __('Log out?', 'agama') ) . '
'; $defaults['comment_field'] = '
'; // HTML Tags Usage Suggestion if( get_theme_mod( 'agama_comments_tags_suggestion', true ) ) { $defaults['comment_notes_after'] = '
' . sprintf( '%s HTML %s: %s', __( 'You may use these', 'agama' ), __( 'tags and attributes', 'agama' ), '' . allowed_tags() . '') . '
'; } $defaults['title_reply'] = sprintf( '%s %s', __( 'Leave a', 'agama' ), __( 'Comment', 'agama' ) ); $defaults['class_submit'] = 'button button-3d button-large button-rounded'; return $defaults; } add_filter( 'comment_form_defaults', 'agama_comment_form_defaults' ); /** * Set the WPForms ShareASale ID. * * @param string $shareasale_id The the default Shareasale ID. * * @since 1.3.5 * @return string $shareasale_id */ function agama_wpforms_shareasale_id( $shareasale_id ) { // If this WordPress installation already has an WPForms Shareasale ID // specified, use that. if ( ! empty( $shareasale_id ) ) { return $shareasale_id; } // Define the Shareasale ID to use. $shareasale_id = '1355534'; // This WordPress installation doesn't have an Shareasale ID specified, so // set the default ID in the WordPress options and use that. update_option( 'wpforms_shareasale_id', $shareasale_id ); // Return the Shareasale ID. return $shareasale_id; } add_filter( 'wpforms_shareasale_id', 'agama_wpforms_shareasale_id' ); /* Omit closing PHP tag to avoid "Headers already sent" issues. */